summary refs log tree commit homepage
path: root/lib/rainbows/process_client.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-10-25 22:15:47 +0000
committerEric Wong <normalperson@yhbt.net>2010-10-25 22:15:47 +0000
commit894cb73887c106acc793f0317ee849ae215ead56 (patch)
tree9f4f4d8caff831383a46dc4eb05e71b32c6ee628 /lib/rainbows/process_client.rb
parent4ee6e0dafeb1b7af28fa90ae27c1a1a04aa8e852 (diff)
kgio_trywrite is superior if it is available.
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