1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00

Fix SSL session warning by actually opening a connection. Close #1997

This commit is contained in:
Nate Berkopec 2020-04-21 10:28:25 +09:00
parent a2cd7da9a4
commit 888b0213f1
No known key found for this signature in database
GPG key ID: BDD7A4B8E43906A6

View file

@ -97,7 +97,8 @@ class TestPumaServerSSL < Minitest::Test
ctx.verify_mode = OpenSSL::SSL::VERIFY_NONE
port = @server.connected_ports[0]
socket = OpenSSL::SSL::SSLSocket.new TCPSocket.new(@host, port), ctx
socket.write "x"
socket.connect
socket.write "HEAD"
sleep 0.1
# Capture the amount of threads being used after connecting and being idle