about summary refs log tree commit homepage
path: root/lib/rainbows/fiber/base.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rainbows/fiber/base.rb')
-rw-r--r--lib/rainbows/fiber/base.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rainbows/fiber/base.rb b/lib/rainbows/fiber/base.rb
index 1104fe7..e0be912 100644
--- a/lib/rainbows/fiber/base.rb
+++ b/lib/rainbows/fiber/base.rb
@@ -82,7 +82,7 @@ module Rainbows
         remote_addr = Rainbows.addr(io)
 
         begin # loop
-          while ! hp.headers(env, buf)
+          until hp.headers(env, buf)
             buf << (client.read_timeout or return)
           end