about summary refs log tree commit homepage
path: root/lib/rainbows/process_client.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rainbows/process_client.rb')
-rw-r--r--lib/rainbows/process_client.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rainbows/process_client.rb b/lib/rainbows/process_client.rb
index 5e200e5..1e2d0d9 100644
--- a/lib/rainbows/process_client.rb
+++ b/lib/rainbows/process_client.rb
@@ -19,13 +19,13 @@ module Rainbows::ProcessClient
   #   Base, ThreadSpawn, ThreadPool
   def process_client(client) # :nodoc:
     hp = HttpParser.new
-    client.readpartial(16384, buf = hp.buf)
+    client.kgio_read!(16384, buf = hp.buf)
     remote_addr = client.kgio_addr
 
     begin # loop
       until env = hp.parse
         wait_headers_readable(client) or return
-        buf << client.readpartial(16384)
+        buf << client.kgio_read!(16384)
       end
 
       env[CLIENT_IO] = client