Class: Net::BufferedIO
- Inherits:
-
Object
- Object
- Net::BufferedIO
- Defined in:
- lib/couchrest/monkeypatches.rb
Overview
:nodoc:
Instance Method Summary collapse
Instance Method Details
#old_rbuf_fill ⇒ Object
29 |
# File 'lib/couchrest/monkeypatches.rb', line 29 alias :old_rbuf_fill :rbuf_fill |
#rbuf_fill ⇒ Object
30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/couchrest/monkeypatches.rb', line 30 def rbuf_fill begin @rbuf << @io.read_nonblock(65536) rescue Errno::EWOULDBLOCK if IO.select([@io], nil, nil, @read_timeout) @rbuf << @io.read_nonblock(65536) else raise Timeout::TimeoutError end end end |