summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/net/http.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/net/http.rb b/lib/net/http.rb
index b5706c597ff..957cb358b2a 100644
--- a/lib/net/http.rb
+++ b/lib/net/http.rb
@@ -915,7 +915,7 @@ module Net #:nodoc:
HTTPResponse.read_new(@socket).value
end
if @ssl_session and
- Time.now < @ssl_session.time + @ssl_session.timeout
+ 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