Bug #11401 ยป net.http.bug.patch
lib/net/http.rb | ||
---|---|---|
@socket.write(buf)
|
||
HTTPResponse.read_new(@socket).value
|
||
end
|
||
# Server Name Indication (SNI) RFC 3546
|
||
s.hostname = @address if s.respond_to? :hostname=
|
||
if @ssl_session and
|
||
Process.clock_gettime(Process::CLOCK_REALTIME) < @ssl_session.time.to_f + @ssl_session.timeout
|
||
s.session = @ssl_session if @ssl_session
|
||
end
|
||
# Server Name Indication (SNI) RFC 3546
|
||
s.hostname = @address if s.respond_to? :hostname=
|
||
Timeout.timeout(@open_timeout, Net::OpenTimeout) { s.connect }
|
||
if @ssl_context.verify_mode != OpenSSL::SSL::VERIFY_NONE
|
||
s.post_connection_check(@address)
|