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/client.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/rainbows/epoll/client.rb') diff --git a/lib/rainbows/epoll/client.rb b/lib/rainbows/epoll/client.rb index 3fbd386..520eb2b 100644 --- a/lib/rainbows/epoll/client.rb +++ b/lib/rainbows/epoll/client.rb @@ -207,8 +207,7 @@ module Rainbows::Epoll::Client # this alternates between a push and pull model from the pipe -> client # to avoid having too much data in userspace on either end. def stream_pipe(pipe) - buf = "" - case buf = pipe.tryread(buf) + case buf = pipe.tryread when String write(buf) if @wr_queue[0] -- cgit v1.2.3-24-ge0c7