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