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/client.rb | |
parent | 321e3dfbd5c4a585c00a8d5221ebdf9b934aaea1 (diff) | |
download | rainbows-a1168e7d2bfe182896f139d051ef099616fd1646.tar.gz |
Diffstat (limited to 'lib/rainbows/epoll/client.rb')
-rw-r--r-- | lib/rainbows/epoll/client.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/rainbows/epoll/client.rb b/lib/rainbows/epoll/client.rb index 3ef51b3..924d32f 100644 --- a/lib/rainbows/epoll/client.rb +++ b/lib/rainbows/epoll/client.rb @@ -207,7 +207,8 @@ 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) - case buf = pipe.tryread + buf = "" + case buf = pipe.tryread(buf) when String write(buf) if @wr_queue[0] |