Class: Net::BufferedIO
Overview
:nodoc:
Instance Method Summary collapse
Instance Method Details
#old_rbuf_fill ⇒ Object
32 |
# File 'lib/couchrest/monkeypatches.rb', line 32 alias :old_rbuf_fill :rbuf_fill |
#rbuf_fill ⇒ Object
33 34 35 36 37 38 39 40 41 42 43 |
# File 'lib/couchrest/monkeypatches.rb', line 33 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::Error end end end |