when establishing ssl session, do post connection check for SNI

This commit is contained in:
HoneyryderChuck 2018-06-12 14:29:41 +01:00
parent 17e54cb4f4
commit 6cd49a3435

View File

@ -53,8 +53,8 @@ module HTTPX
@io.hostname = @hostname
@io.sync_close = true
end
# TODO: this might block it all
@io.connect_nonblock
@io.post_connection_check(@hostname) if @ctx.verify_mode != OpenSSL::SSL::VERIFY_NONE
transition(:negotiated)
rescue ::IO::WaitReadable,
::IO::WaitWritable