diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-04-11 07:53:57 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-04-11 07:53:57 +0000 |
commit | a1168e7d2bfe182896f139d051ef099616fd1646 (patch) | |
tree | 7044248ee4c810514fb87221fb460e7f4a7e180c /lib/rainbows/epoll/response_pipe.rb | |
parent | 321e3dfbd5c4a585c00a8d5221ebdf9b934aaea1 (diff) | |
download | rainbows-a1168e7d2bfe182896f139d051ef099616fd1646.tar.gz |
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 |