1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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:
akr 2009-02-08 02:01:22 +00:00
parent 048acb6638
commit 6294d065bb

View file

@ -156,6 +156,7 @@ class OpenSSL::TestPair < Test::Unit::TestCase
}
assert_match(/SSL_ERROR_WANT_READ/, err.message)
s1.write "abc\ndef\n"
IO.select([s2])
assert_equal("ab", s2.read_nonblock(2))
assert_equal("c\n", s2.gets)
ret = nil