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?
In reply to HTTP::Daemon cannot support keep alive properly? by pg
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |