about summary refs log tree commit homepage
diff options
context:
space:
mode:
-rw-r--r--lib/rainbows/coolio/client.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/rainbows/coolio/client.rb b/lib/rainbows/coolio/client.rb
index f1f16d3..9853321 100644
--- a/lib/rainbows/coolio/client.rb
+++ b/lib/rainbows/coolio/client.rb
@@ -137,6 +137,9 @@ class Rainbows::Coolio::Client < Coolio::IO
       close if @_write_buffer.empty?
     when :headers
       if @buf.empty?
+        buf = @_io.kgio_tryread(16384, RBUF) or return close
+        String === buf and return on_read(buf)
+        # buf == :wait_readable
         unless enabled?
           enable
           KATO[self] = Time.now