mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/net/protocol.rb (rbuf_fill): OpenSSL::SSLSocket has its own buffer, select(2) might not work. [ruby-dev:24072]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6786 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
1d1ad956cb
commit
b79d77197f
2 changed files with 8 additions and 4 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Wed Aug 18 23:44:20 2004 Minero Aoki <aamine@loveruby.net>
|
||||||
|
|
||||||
|
* lib/net/protocol.rb (rbuf_fill): OpenSSL::SSLSocket has its own
|
||||||
|
buffer, select(2) might not work. [ruby-dev:24072]
|
||||||
|
|
||||||
Wed Aug 18 17:10:12 2004 WATANABE Hirofumi <eban@ruby-lang.org>
|
Wed Aug 18 17:10:12 2004 WATANABE Hirofumi <eban@ruby-lang.org>
|
||||||
|
|
||||||
* ext/tcltklib/stubs.c (ruby_tcltk_stubs): need to call
|
* ext/tcltklib/stubs.c (ruby_tcltk_stubs): need to call
|
||||||
|
|
|
@ -129,10 +129,9 @@ module Net # :nodoc:
|
||||||
private
|
private
|
||||||
|
|
||||||
def rbuf_fill
|
def rbuf_fill
|
||||||
until IO.select([@io], nil, nil, @read_timeout)
|
timeout(@read_timeout) {
|
||||||
raise TimeoutError, "socket read timeout (#{@read_timeout} sec)"
|
@rbuf << @io.sysread(1024)
|
||||||
end
|
}
|
||||||
@rbuf << @io.sysread(1024)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def rbuf_consume(len)
|
def rbuf_consume(len)
|
||||||
|
|
Loading…
Reference in a new issue