diff options
author | Eric Wong <normalperson@yhbt.net> | 2010-07-06 09:58:40 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2010-07-06 10:05:13 +0000 |
commit | d2f240d7ea11738ba889668a669ffb7845d06e7b (patch) | |
tree | 020802df1f92f750ee91f0834c09bac0e304c3a2 /lib/rainbows/rev/client.rb | |
parent | 0283928fca45a012b31662b30b49990dac2aae18 (diff) | |
download | rainbows-d2f240d7ea11738ba889668a669ffb7845d06e7b.tar.gz |
Fortunately this only affects the hardly-used FiberSpawn and FiberPool concurrency models, and also unreleased revisions of Rev. 1.9 encoding is tricky to handle right when doing I/O in Ruby...
Diffstat (limited to 'lib/rainbows/rev/client.rb')
-rw-r--r-- | lib/rainbows/rev/client.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/rainbows/rev/client.rb b/lib/rainbows/rev/client.rb index f854a63..bc8d7fa 100644 --- a/lib/rainbows/rev/client.rb +++ b/lib/rainbows/rev/client.rb @@ -4,6 +4,7 @@ module Rainbows module Rev class Client < ::Rev::IO + include Rainbows::ByteSlice include Rainbows::EvCore include Rainbows::HttpResponse G = Rainbows::G @@ -33,7 +34,7 @@ module Rainbows end # we never care for the return value, but yes, we may return # a "fake" short write from super(buf) if anybody cares. - buf = buf[w..-1] + buf = byte_slice(buf, w..-1) rescue Errno::EAGAIN break # fall through to super(buf) rescue |