diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | lib/net/protocol.rb | 4 |
2 files changed, 7 insertions, 1 deletions
@@ -1,3 +1,7 @@ +Mon Mar 19 11:39:29 2007 Minero Aoki <[email protected]> + + * lib/net/protocol.rb (rbuf_read): extend buffer size for speed. + Sun Mar 18 04:23:52 2007 Akinori MUSHA <[email protected]> * NEWS: Add a note about the new `date' library defining diff --git a/lib/net/protocol.rb b/lib/net/protocol.rb index d722fdcbd4..dc23c14dfa 100644 --- a/lib/net/protocol.rb +++ b/lib/net/protocol.rb @@ -128,9 +128,11 @@ module Net # :nodoc: private + BUFSIZE = 1024 * 16 + def rbuf_fill timeout(@read_timeout) { - @rbuf << @io.sysread(1024) + @rbuf << @io.sysread(BUFSIZE) } end |