lib/httpx/io/ssl.rb in httpx-1.0.2 vs lib/httpx/io/ssl.rb in httpx-1.1.0
- old
+ new
@@ -112,10 +112,12 @@
end
try_ssl_connect
end
def try_ssl_connect
- case @io.connect_nonblock(exception: false)
+ ret = @io.connect_nonblock(exception: false)
+ log(level: 3, color: :cyan) { "TLS CONNECT: #{ret}..." }
+ case ret
when :wait_readable
@interests = :r
return
when :wait_writable
@interests = :w