summaryrefslogtreecommitdiff
path: root/lib/custodian/protocoltest/ssl.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/custodian/protocoltest/ssl.rb')
-rw-r--r--lib/custodian/protocoltest/ssl.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/custodian/protocoltest/ssl.rb b/lib/custodian/protocoltest/ssl.rb
index 18da9f1..4929f7b 100644
--- a/lib/custodian/protocoltest/ssl.rb
+++ b/lib/custodian/protocoltest/ssl.rb
@@ -154,7 +154,7 @@ class SSLCheck
ctx = OpenSSL::SSL::SSLContext.new(:TLSv1_client)
retried = false
begin
- Timeout::timeout(10) do
+ Timeout.timeout(10) do
s = TCPSocket.open(uri.host, uri.port)
s = OpenSSL::SSL::SSLSocket.new(s, ctx)
s.sync_close = true
@@ -212,7 +212,7 @@ class SSLCheck
s = nil
begin
- Timeout::timeout(10) do
+ Timeout.timeout(10) do
s = TCPSocket.open(uri.host, uri.port)
s = OpenSSL::SSL::SSLSocket.new(s, OpenSSL::SSL::SSLContext.new(:SSLv3_client))
s.sync_close = true