about summary refs log tree commit homepage
path: root/lib
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-12-02 05:30:39 +0000
committerEric Wong <normalperson@yhbt.net>2010-12-02 05:32:23 +0000
commitc32488dcc69181d2e10b82645ef87c8b8b88b8e1 (patch)
tree46b2e2ee743fd410acedbbd8c0ba846890e2a250 /lib
parentdee9e6432c8eb5269a19c4c6b66ab932fdeda34f (diff)
downloadunicorn-c32488dcc69181d2e10b82645ef87c8b8b88b8e1.tar.gz
It screws up keepalive for Rainbows! requests with a body.
Diffstat (limited to 'lib')
-rw-r--r--lib/unicorn/stream_input.rb2
1 files changed, 1 insertions, 1 deletions
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