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

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

by dwalin (Monk)
on Oct 25, 2011 at 07:43 UTC ( #933555=note: print w/replies, xml ) Need Help??

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

HTTP::Server::Simple integrates nicely with Net::Server which provides forking and preforking behaviors. I think it is mentioned in the docs for HSS, too.


  • Comment on Re: HTTP::Server::Simple forking/SSL/IPv6

Replies are listed 'Best First'.
Re^2: HTTP::Server::Simple forking/SSL/IPv6
by cavac (Deacon) on Nov 02, 2011 at 19:50 UTC

    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.

      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.


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://933555]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (7)
As of 2018-05-20 14:48 GMT
Find Nodes?
    Voting Booth?