about summary refs log tree commit homepage
path: root/lib/rainbows/epoll/response_pipe.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rainbows/epoll/response_pipe.rb')
-rw-r--r--lib/rainbows/epoll/response_pipe.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/rainbows/epoll/response_pipe.rb b/lib/rainbows/epoll/response_pipe.rb
index 6bd31cf..56d9a47 100644
--- a/lib/rainbows/epoll/response_pipe.rb
+++ b/lib/rainbows/epoll/response_pipe.rb
@@ -4,6 +4,7 @@
 class Rainbows::Epoll::ResponsePipe
   attr_reader :io
   alias to_io io
+  RBUF = Rainbows::EvCore::RBUF
   EP = Rainbows::Epoll::EP
 
   def initialize(io, client, body)
@@ -25,7 +26,7 @@ class Rainbows::Epoll::ResponsePipe
     @io = @body = nil
   end
 
-  def tryread(buf)
-    Kgio.tryread(@io, 16384, buf)
+  def tryread
+    Kgio.tryread(@io, 16384, RBUF)
   end
 end