mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-09-01 00:00:35 -04:00
when establishing ssl session, do post connection check for SNI
This commit is contained in:
parent
17e54cb4f4
commit
6cd49a3435
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user