diff --git a/ChangeLog b/ChangeLog index c481dfecc2..e6abf606ec 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Mon Mar 19 11:39:29 2007 Minero Aoki + + * lib/net/protocol.rb (rbuf_read): extend buffer size for speed. + Sun Mar 18 04:23:52 2007 Akinori MUSHA * 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