Skip to content

Commit

Permalink
Fix SSL session warning by actually opening a connection. Close puma#…
Browse files Browse the repository at this point in the history
  • Loading branch information
nateberkopec committed Apr 21, 2020
1 parent a2cd7da commit 888b021
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/test_puma_server_ssl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ def test_request_wont_block_thread
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
Expand Down

0 comments on commit 888b021

Please sign in to comment.