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:
parent
a2cd7da9a4
commit
888b0213f1
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue