On 14 jun, 20:41, [EMAIL PROTECTED] (Jerry D. Hedden) wrote:
> On Arno Velds wrote:
> > This works perfectly fine except that the request following the thread
> > starting request from the same client is never answered.
>
> If you remove the line:
>     $c->force_last_request;
> then it works as advertised.

Thanks for thinking along. You are correct, but this has some
disadvantages. Standard firefox keepalive time is 300 seconds. So
unless you use a threaded webserver implementation this will block all
other incoming requests. I obviously tried this, but performance is
lower than allowing only one request per connection.

As I mentioned in my somewhat lengthy post I have already worked
around the problem by not starting new threads from the connection
loop. All I would like to know is that if I want to be a HTTP/1.0
server and only serve 1 request per connection why isn't the second
request from the same client answered even though they can be 20
seconds apart and separated by a $c->close on the server side. Please
bear in mind that the second request is not being discarded by the $c-
>force_last_request; because at that time it hasn't even been sent!

Maybe you can try my example and see for yourself.

Cheers,
Arno (The Netherlands)






Reply via email to