* lib/net/protocol.rb (rbuf_read): extend buffer size for speed.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12092 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
aamine 2007-03-19 02:39:22 +00:00
parent 0afe6a7862
commit cad1282b24
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,7 @@
Mon Mar 19 11:39:29 2007 Minero Aoki <aamine@loveruby.net>
* lib/net/protocol.rb (rbuf_read): extend buffer size for speed.
Sun Mar 18 04:23:52 2007 Akinori MUSHA <knu@iDaemons.org> Sun Mar 18 04:23:52 2007 Akinori MUSHA <knu@iDaemons.org>
* NEWS: Add a note about the new `date' library defining * NEWS: Add a note about the new `date' library defining

View file

@ -128,9 +128,11 @@ module Net # :nodoc:
private private
BUFSIZE = 1024 * 16
def rbuf_fill def rbuf_fill
timeout(@read_timeout) { timeout(@read_timeout) {
@rbuf << @io.sysread(1024) @rbuf << @io.sysread(BUFSIZE)
} }
end end