Class: Net::BufferedIO

Inherits:
Object show all
Defined in:
lib/awsum/net_fix.rb

Instance Method Summary collapse

Instance Method Details

#rbuf_fillObject

Increase the default read size for streaming from the socket



5
6
7
8
9
# File 'lib/awsum/net_fix.rb', line 5

def rbuf_fill
  timeout(@read_timeout) {
    @rbuf << @io.sysread(1024 * 16)
  }
end