public
Last active

  • Download Gist
read_nonblock_jruby_fix.rb
Ruby
1 2 3 4 5 6 7 8 9
Net::BufferedIO.class_eval do
BUFSIZE = 1024 * 16
 
def rbuf_fill
timeout(@read_timeout) {
@rbuf << @io.sysread(BUFSIZE)
}
end
end

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.