* 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

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