From c32488dcc69181d2e10b82645ef87c8b8b88b8e1 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 2 Dec 2010 05:30:39 +0000 Subject: stream_input: avoid trailer parsing on unchunked requests It screws up keepalive for Rainbows! requests with a body. --- lib/unicorn/stream_input.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/unicorn/stream_input.rb b/lib/unicorn/stream_input.rb index 619067d..fa2e902 100644 --- a/lib/unicorn/stream_input.rb +++ b/lib/unicorn/stream_input.rb @@ -105,7 +105,7 @@ private def eof? if @parser.body_eof? - until @parser.parse + while @chunked && ! @parser.parse once = @socket.kgio_read(@@io_chunk_size) or eof! @buf << once end -- cgit v1.2.3-24-ge0c7