about summary refs log tree commit homepage
path: root/lib/rainbows/epoll/client.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2011-05-08 07:54:30 +0000
committerEric Wong <normalperson@yhbt.net>2011-05-08 07:54:58 +0000
commitdf00f2b1028ba95450246c82e468878b6ec903a3 (patch)
tree1d15a006fd970b3f0d4e98253e5a1b00be779c2f /lib/rainbows/epoll/client.rb
parented869514211a908748f04a881e6fb18a395914ae (diff)
downloadrainbows-df00f2b1028ba95450246c82e468878b6ec903a3.tar.gz
Fixed in kgio 2.4.0 now

This reverts commit a1168e7d2bfe182896f139d051ef099616fd1646.
Diffstat (limited to 'lib/rainbows/epoll/client.rb')
-rw-r--r--lib/rainbows/epoll/client.rb3
1 files changed, 1 insertions, 2 deletions
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]