Skip Menu |

This queue is for tickets about the POE-Component-Server-SimpleHTTP CPAN distribution.

Report information
The Basics
Id: 67951
Status: resolved
Priority: 0/
Queue: POE-Component-Server-SimpleHTTP

People
Owner: Nobody in particular
Requestors: adrian [...] gt.net
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 2.12



Subject: Patch: Keep alive connections aren't reset properly after streaming
If keep-alives are enabled and streaming is used, the connection state isn't reset properly causing the wrong output on subsequent requests. Adrian --- POE/Component/Server/SimpleHTTP.pm.orig 2011-05-03 19:35:01.000000000 -0700 +++ POE/Component/Server/SimpleHTTP.pm 2011-05-03 19:35:53.000000000 -0700 @@ -744,6 +744,8 @@ $state->set_connection( $state->response->connection ); $state->reset; $self->_connections->{$id} = $state; + delete $self->_chunkcount->{$id}; + delete $self->_responses->{$id}; } else { # Shutdown read/write on the wheel
Subject: SimpleHTTP.streaming.keep-alive.reset.patch
--- POE/Component/Server/SimpleHTTP.pm.orig 2011-05-03 19:35:01.000000000 -0700 +++ POE/Component/Server/SimpleHTTP.pm 2011-05-03 19:35:53.000000000 -0700 @@ -744,6 +744,8 @@ $state->set_connection( $state->response->connection ); $state->reset; $self->_connections->{$id} = $state; + delete $self->_chunkcount->{$id}; + delete $self->_responses->{$id}; } else { # Shutdown read/write on the wheel
This was fixed in 56f65f688bb69c6a222b9d43fff71babd5df683e, v2.12 - issue can be closed. On Wed May 04 17:55:36 2011, brewt wrote: Show quoted text
> If keep-alives are enabled and streaming is used, the connection state > isn't reset properly causing the wrong output on subsequent requests. > > Adrian > > --- POE/Component/Server/SimpleHTTP.pm.orig 2011-05-03 > 19:35:01.000000000 -0700 > +++ POE/Component/Server/SimpleHTTP.pm 2011-05-03 19:35:53.000000000 -0700 > @@ -744,6 +744,8 @@ > $state->set_connection( $state->response->connection ); > $state->reset; > $self->_connections->{$id} = $state; > + delete $self->_chunkcount->{$id}; > + delete $self->_responses->{$id}; > } > else { > # Shutdown read/write on the wheel
Resolved.