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