diff options
author | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-03-19 02:27:08 +0000 |
---|---|---|
committer | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-03-19 02:27:08 +0000 |
commit | 85f3eeef0c51d4fc3f94e800100b229e9da8966c (patch) | |
tree | b3cf71fb51997666941d035204d1597e2e23e3fe /lib/net/protocol.rb | |
parent | c67ab9691af7ba605c550f595832708d457aa19b (diff) | |
download | ruby-85f3eeef0c51d4fc3f94e800100b229e9da8966c.tar.gz ruby-85f3eeef0c51d4fc3f94e800100b229e9da8966c.tar.xz ruby-85f3eeef0c51d4fc3f94e800100b229e9da8966c.zip |
* lib/net/protocol.rb (rbuf_read): extend buffer size for speed.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12091 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/net/protocol.rb')
-rw-r--r-- | lib/net/protocol.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/net/protocol.rb b/lib/net/protocol.rb index cbeff4829..0d489cdbc 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 |