pg has asked for the wisdom of the Perl Monks concerning the following question:
I started recently to use HTTP::Daemon for my web server, but occassionaly (actually quite often) it fails to handle multiple requests with one connection. I was calling get_request method of that package, from time to time, the client site (browser) just hangs.
The code is something like (as suggested in its doc)while ($connection->get_request) { #hanles the req here }
The problem could be easily fixed by closing the socket after handling each request. This simply tells the client that, sorry I don't handle multiple request with one connection, please send next request again with a new connection.
This works fine as it should be, but there are questions left over...
Is this a known problem with HTTP:Daemon (it works sometime, but not stable at all in terms of multi-request-with-one-connection.) or just that I missed something
What do you guys usually do to fix this?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: HTTP::Daemon cannot support keep alive properly?
by vek (Prior) on Oct 11, 2003 at 20:41 UTC | |
by pg (Canon) on Oct 11, 2003 at 21:11 UTC | |
|
Re: HTTP::Daemon cannot support keep alive properly?
by dws (Chancellor) on Oct 12, 2003 at 15:26 UTC | |
|
Re: HTTP::Daemon cannot support keep alive properly?
by Anonymous Monk on Oct 12, 2003 at 10:44 UTC |