mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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:
parent
f3cde2b5fb
commit
a7ec83b93a
2 changed files with 7 additions and 1 deletions
|
@ -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>
|
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,
|
* win32/dir.h, win32/win32.c (rb_w32_opendir, rb_w32_readdir,
|
||||||
|
|
|
@ -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