diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-05-08 07:54:30 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-05-08 07:54:58 +0000 |
commit | df00f2b1028ba95450246c82e468878b6ec903a3 (patch) | |
tree | 1d15a006fd970b3f0d4e98253e5a1b00be779c2f /lib/rainbows/epoll/response_pipe.rb | |
parent | ed869514211a908748f04a881e6fb18a395914ae (diff) | |
download | rainbows-df00f2b1028ba95450246c82e468878b6ec903a3.tar.gz |
Fixed in kgio 2.4.0 now This reverts commit a1168e7d2bfe182896f139d051ef099616fd1646.
Diffstat (limited to 'lib/rainbows/epoll/response_pipe.rb')
-rw-r--r-- | lib/rainbows/epoll/response_pipe.rb | 5 |
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 |