Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: HTTP::Server::Simple forking/SSL/IPv6

by cavac (Chaplain)
on Nov 02, 2011 at 19:50 UTC ( #935484=note: print w/ replies, xml ) Need Help??


in reply to Re: HTTP::Server::Simple forking/SSL/IPv6
in thread HTTP::Server::Simple forking/SSL/IPv6

Yes, that's what my module does.

"Integrates nicely" is not a 100% true, though. While it easy enough to use Net::Server with HSS, there are some pitfalls, though. Like, you have to disable the two calls to "binmode" in the _process_request() sub when (and only when) using SSL.

So, HSSCP is not "revolutionary", "ultimate" or "the best"; rather i took all the workarounds and steps-to-make-it-work i had come up with and put them into a more or less easy-to-use module. With the hope that this module now makes it easier for beginners to set up a preforking all-perl webserver.

For more complex tasks, there are a lot of frameworks around like Catalyst or the ("cavac has still not released 1.0 and working examples") Maplat server.

Don't use '#ff0000':
use Acme::AutoColor; my $redcolor = RED();
All colors subject to change without notice.


Comment on Re^2: HTTP::Server::Simple forking/SSL/IPv6
Re^3: HTTP::Server::Simple forking/SSL/IPv6
by dwalin (Monk) on Nov 04, 2011 at 12:33 UTC

    Um. I'm not sure it's such a great idea after all. I mean, HSS is awesome for prototyping but after several months of extensive testing I'm much less inclined to put it in production, preforking or not. Anyway, it's easy enough to setup reverse proxy scenario with a bona fide HTTP server even for prototyping, so what's the reason for adding SSL and stuff?

    Besides, Plack is the way to go these days. It's not an ideal solution but it's near enough so the only reason for avoiding it I see is compatibility to Perl versions older than 5.8. YMMV though.

    Regards,
    Alex.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://935484]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2014-08-30 22:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (294 votes), past polls