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

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12091 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
aamine 2007-03-19 02:27:08 +00:00
parent f3cde2b5fb
commit a7ec83b93a
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,7 @@
Mon Mar 19 11:27:13 2007 Minero Aoki <aamine@loveruby.net>
* lib/net/protocol.rb (rbuf_read): extend buffer size for speed.
Sun Mar 18 08:31:51 2007 NAKAMURA Usaku <usa@ruby-lang.org>
* win32/dir.h, win32/win32.c (rb_w32_opendir, rb_w32_readdir,

View File

@ -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