Hi Ynon.

I took a look, and Net::SSLeay is an XS module, and completely not 
thread safe.
(for example, it keeps hashs as global variables in the C code)

So here are the options that you have:
1. contact the author, and ask him if he can update his module
2. use other module - are there alternatives?
3. pay someone to fix it for you (you need an expert here)
4. separate the work to different processes

Shmuel.


On 2011/01/13 22:16, ynon perek wrote:
> Hello List,
> Playing with some multi threaded perl lately, I have the strangest problem.
> I'm running the following code on a Debian Lenny machine (tried also
> with Ubuntu) - and getting a segfault on the join call.
> (Notice the url is http*s*)
>
> use strict;
> use warnings;
> use LWP::Simple;
> use threads;
>
> sub x {
>          return 0;
> }
>
> my $reply = get "https://graph.facebook.com/me/friends";;
>
> my @threads = map { threads->create('x') } (1..5);
> my @results = map { $_->join } @threads;
>
> The weird thing is, if I change the URL to normal http, everything works
> as expected.
> Has anyone had that problem ? any ideas for workarounds ?
> (I did find on google this thread, but couldn't make any smart idea out
> of it: http://prlmnks.org/html/407374.html).
>
> Ynon
>
>
>
> _______________________________________________
> 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