diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-02-08 02:01:22 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-02-08 02:01:22 +0000 |
commit | 6294d065bba7d59a9fb7b50483a9f91f4e6405fd (patch) | |
tree | 846307f2cc246cf9ba5d5c56c184acd835b46a6e /test/openssl | |
parent | 048acb66383cae6926c0d4a661f1b87bb62d716f (diff) | |
download | ruby-6294d065bba7d59a9fb7b50483a9f91f4e6405fd.tar.gz |
select before read_nonblock.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22117 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/openssl')
-rw-r--r-- | test/openssl/test_pair.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/openssl/test_pair.rb b/test/openssl/test_pair.rb index ea8fc773cb..271459f55e 100644 --- a/test/openssl/test_pair.rb +++ b/test/openssl/test_pair.rb @@ -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 |