mirror of
https://github.com/ruby/ruby.git
synced 2025-08-24 13:34:17 +02:00
* 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:
parent
0afe6a7862
commit
cad1282b24
2 changed files with 7 additions and 1 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue