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 | b0edd371ad27d841f70b840981873b38da5ba644 (patch) | |
| tree | 846307f2cc246cf9ba5d5c56c184acd835b46a6e /test | |
| parent | 10f026faf227cd4d6295ee61af32982ea00932af (diff) | |
| download | ruby-b0edd371ad27d841f70b840981873b38da5ba644.tar.gz ruby-b0edd371ad27d841f70b840981873b38da5ba644.tar.xz ruby-b0edd371ad27d841f70b840981873b38da5ba644.zip | |
select before read_nonblock.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22117 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
| -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 ea8fc773c..271459f55 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 |
