From df00f2b1028ba95450246c82e468878b6ec903a3 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 8 May 2011 07:54:30 +0000 Subject: Revert "epoll: fixes for Ruby 1.9.3dev" Fixed in kgio 2.4.0 now This reverts commit a1168e7d2bfe182896f139d051ef099616fd1646. --- lib/rainbows/epoll/response_pipe.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/rainbows/epoll/response_pipe.rb') 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 -- cgit v1.2.3-24-ge0c7