Hi David,
I actually have the same feeling (something with the SSL library). According
to the OpenSSL FAQ it is thread safe (
http://www.openssl.org/support/faq.html#PROG1) - I'm not sure how to follow
that lead any further.

The problem is actually more than what LWP::Parallel could solve.
It seems the seg-fault happens every time I use threads in the same perl as
LWP with https (Note that the threads don't actually do anything here).

So yeah, it's possible to use LWP::Parallel (or even POE) to get rid of the
threads here, but this means that any time I use LWP with SSL I won't be
able to use the threads module at all in my app ? this doesn't make sense
...

On 13 January 2011 22:47, David Baird <[email protected]> wrote:

> Ynon,
>
> It seems that LWP::Simple should be thread safe. I've used it in a
> thread, myself. However, the SSL library might not be thread safe. I
> don't have a direct solution, but you could start by checking that the
> SSL library that comes with your Perl and/or Linux is thread safe.
>
> Have you looked at LWP::Parellel? You might be able to use it to
> create a separate instance of the https reply in each thread.
>
> Thanks,
> David
> _______________________________________________
> Perl mailing list
> [email protected]
> http://mail.perl.org.il/mailman/listinfo/perl
>
_______________________________________________
Perl mailing list
[email protected]
http://mail.perl.org.il/mailman/listinfo/perl

Reply via email to