Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

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.

    fnord

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://995814]
Approved by MidLifeXis
Front-paged by MidLifeXis
help
Chatterbox?
[ambrus]: ambrus's scratchpad
[ambrus]: Also, I was wrong, apparently you have to support both periodic and one-shot timers in an AnyEvent backend
[Corion]: ambrus: That looks deceptively simple, but maybe that's simply all that's needed. Which would be great! I hope I get to test it tomorrow, thanks!!
[choroba]: Hm, unrelated question.
[ambrus]: I added a timer implementation to ambrus's scratchpad as well, again the whole thing is completely untested and probably has more bugs than lines
[choroba]: Anyone using anything to validate json contents of a REST service?

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (9)
As of 2016-12-08 12:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (141 votes). Check out past polls.