Home  |  Linux  | Mysql  | PHP  | XML
From:David Landgren Date:Mon Jun 23 13:23:42 2008
Subject:Re: Crypt-SSLeay thread safe ?
Harry Wu wrote, some time around 23/06/2008 17:57:
> Hi,
>     Thanks for creating the great LWP and Crypt::SSLeay 
> <http://search.cpan.org/%7Edland/Crypt-SSLeay-0.57/>  modules. I use it 
> very often.
> 
>     I am using LWP + https in a multithread perl script.  I found that 
> sometime it crashs.

Do you have a stack trace?

> Is Crypt::SSLeay <http://search.cpan.org/%7Edland/Crypt-SSLeay-0.57/>   
> thread safe ?      If not, it is possible to make it thread safe ?

I honestly don't know if it is, but I imagine that if it wasn't, it 
would just require just a bit of thought and a bit more code. I'm just 
the maintainer; I accept patches :)

> Does LWP + https    use Net::SSLeay 

No.

> <http://search.cpan.org/%7Eflora/Net_SSLeay.pm/SSLeay.pm> at all ? I am 
> not sure about the relationship between Crypt::SSLeay 
> <http://search.cpan.org/%7Edland/Crypt-SSLeay-0.57/> and Net::SSLeay 
> <http://search.cpan.org/%7Eflora/Net_SSLeay.pm/SSLeay.pm> .

There is none. Net::SSLeay lets you do secure sockets for whatever 
private purpose you desire.

> Currently LWP only use Crypt::SSLeay 
> <http://search.cpan.org/%7Edland/Crypt-SSLeay-0.57/>, right ?

Yes, the distribution Crypt-SSLeay contains the packages Crypt::SSLeay 
which is essentially a hollow do-nothing husk, and Net::SSL, which is 
what LWP is after when it needs to do https.

> 
> Thanks a lot.. Great job !!

Thanks. Feedback like this is balm to the heart.

David
-- 
stubborn tiny lights vs. clustering darkness forever ok?
Navigate in group perl.libwww at sever nntp.perl.org
Previous Next




  
© No Copyright
You are free to use Anything
Site Maintained by PHP Developer
Powered By PHP Consultants