mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
use IO::WaitWritable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23007 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c4049f4cb6
commit
758f9510a6
2 changed files with 2 additions and 2 deletions
|
@ -157,7 +157,7 @@ class TestSocketAddrinfo < Test::Unit::TestCase
|
|||
s2 = Socket.new(:INET, :STREAM, 0)
|
||||
begin
|
||||
s2.connect_nonblock(ai)
|
||||
rescue Errno::EINPROGRESS
|
||||
rescue IO::WaitWritable
|
||||
IO.select(nil, [s2])
|
||||
begin
|
||||
s2.connect_nonblock(ai)
|
||||
|
|
|
@ -36,7 +36,7 @@ class TestSocketNonblock < Test::Unit::TestCase
|
|||
servaddr = serv.getsockname
|
||||
begin
|
||||
c.connect_nonblock(servaddr)
|
||||
rescue Errno::EINPROGRESS
|
||||
rescue IO::WaitWritable
|
||||
IO.select nil, [c]
|
||||
assert_nothing_raised {
|
||||
begin
|
||||
|
|
Loading…
Add table
Reference in a new issue