Skip to content

Commit

Permalink
[RT #67951] Patch: Keep alive connections aren't reset properly after…
Browse files Browse the repository at this point in the history
… streaming

Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=67951 >

If keep-alives are enabled and streaming is used, the connection state
isn't reset properly causing the wrong output on subsequent requests.

Signed-off-by: Chris 'BinGOs' Williams <chris@bingosnet.co.uk>
  • Loading branch information
brewt authored and bingos committed May 14, 2011
1 parent abf3591 commit 56f65f6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/POE/Component/Server/SimpleHTTP.pm
Expand Up @@ -744,6 +744,8 @@ event 'got_flush' => sub {
$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
Expand Down

0 comments on commit 56f65f6

Please sign in to comment.