Class: Net::BufferedIO
Overview
:nodoc:
Constant Summary collapse
- DEFAULT_SOCKET_READ_SIZE =
Default size (in bytes) of the max read from a socket into the user space read buffers for socket IO
16*1024
- @@socket_read_size =
DEFAULT_SOCKET_READ_SIZE
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.socket_read_size=(readsize) ⇒ Object
39 40 41 42 43 44 |
# File 'lib/net_fix.rb', line 39 def self.socket_read_size=(readsize) if(readsize <= 0) return end @@socket_read_size = readsize end |
.socket_read_size? ⇒ Boolean
46 47 48 |
# File 'lib/net_fix.rb', line 46 def self.socket_read_size?() @@socket_read_size end |
Instance Method Details
#rbuf_fill ⇒ Object
50 51 52 53 54 |
# File 'lib/net_fix.rb', line 50 def rbuf_fill timeout(@read_timeout) { @rbuf << @io.sysread(@@socket_read_size) } end |