Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

HTTP::Daemon::SSL and threads

by newtonapple (Initiate)
on Sep 26, 2012 at 16:38 UTC ( #995814=perlquestion: print w/replies, xml ) Need Help??
newtonapple has asked for the wisdom of the Perl Monks concerning the following question:

How do I implement HTTPS using threads? I have tried using HTTP::Daemon::SSL but it gives me a segmentation fault with threads as the underlying Net::SSLeay module is not thread safe. Is there any workaround for this?

Replies are listed 'Best First'.
Re: HTTP::Daemon::SSL and threads
by Illuminatus (Curate) on Sep 26, 2012 at 16:59 UTC
    caveat: I haven't actually used this module

    Did you read the cpan documentation for Net::SSLeay? It has a section on how to use it in a multi-threaded environment. It should probably work if you follow those instructions, unless you're also using another module that independently initializes openssl.


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://995814]
Approved by MidLifeXis
Front-paged by MidLifeXis
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2016-10-20 21:49 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (283 votes). Check out past polls.