[ruby/openssl] ssl: update test_accept_errors_include_peeraddr test case
Use a different invalid data example to prevent SSLSocket#accept from reaching EOF. https://github.com/ruby/openssl/commit/2e089c1916
This commit is contained in:
parent
0b3482c0e7
commit
15eefd30ad
@ -893,14 +893,12 @@ class OpenSSL::TestSSL < OpenSSL::SSLTestCase
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
begin
|
|
||||||
sock = TCPSocket.new("127.0.0.1", port)
|
sock = TCPSocket.new("127.0.0.1", port)
|
||||||
sock.puts "abc"
|
sock << "\x00" * 1024
|
||||||
ensure
|
|
||||||
sock&.close
|
|
||||||
end
|
|
||||||
|
|
||||||
assert t.join
|
assert t.join
|
||||||
|
ensure
|
||||||
|
sock&.close
|
||||||
server.close
|
server.close
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user