mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02: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
|
@ -129,10 +129,9 @@ module Net # :nodoc:
|
|||
private
|
||||
|
||||
def rbuf_fill
|
||||
until IO.select([@io], nil, nil, @read_timeout)
|
||||
raise TimeoutError, "socket read timeout (#{@read_timeout} sec)"
|
||||
end
|
||||
@rbuf << @io.sysread(1024)
|
||||
timeout(@read_timeout) {
|
||||
@rbuf << @io.sysread(1024)
|
||||
}
|
||||
end
|
||||
|
||||
def rbuf_consume(len)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue