Bug #10533 ยป net.http.bug10533.patch
lib/net/http.rb (working copy) | ||
---|---|---|
914 | 914 |
@socket.write(buf) |
915 | 915 |
HTTPResponse.read_new(@socket).value |
916 | 916 |
end |
917 |
s.session = @ssl_session if @ssl_session |
|
917 |
if @ssl_session and |
|
918 |
Time.now < @ssl_session.time + @ssl_session.timeout |
|
919 |
s.session = @ssl_session if @ssl_session |
|
920 |
end |
|
918 | 921 |
# Server Name Indication (SNI) RFC 3546 |
919 | 922 |
s.hostname = @address if s.respond_to? :hostname= |
920 | 923 |
Timeout.timeout(@open_timeout, Net::OpenTimeout) { s.connect } |