select before read_nonblock.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22117 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
048acb6638
commit
6294d065bb
@ -156,6 +156,7 @@ class OpenSSL::TestPair < Test::Unit::TestCase
|
|||||||
}
|
}
|
||||||
assert_match(/SSL_ERROR_WANT_READ/, err.message)
|
assert_match(/SSL_ERROR_WANT_READ/, err.message)
|
||||||
s1.write "abc\ndef\n"
|
s1.write "abc\ndef\n"
|
||||||
|
IO.select([s2])
|
||||||
assert_equal("ab", s2.read_nonblock(2))
|
assert_equal("ab", s2.read_nonblock(2))
|
||||||
assert_equal("c\n", s2.gets)
|
assert_equal("c\n", s2.gets)
|
||||||
ret = nil
|
ret = nil
|
||||||
|
Loading…
x
Reference in New Issue
Block a user