summaryrefslogtreecommitdiff
path: root/lib/custodian/protocoltest
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2016-07-13 12:46:20 +0300
committerSteve Kemp <steve@steve.org.uk>2016-07-13 12:46:20 +0300
commitf04e2b87aeb6f166283fd1d26b2d6cfcc4b40906 (patch)
tree00e5b5acebace64323b9c361e85a51db39cfdd09 /lib/custodian/protocoltest
parent9366c1eda2967d6931efd6e73134dc79fb8a5cd2 (diff)
Retry SSL checks on negotiation failure.release-0.29
This prevents an endless loop.
Diffstat (limited to 'lib/custodian/protocoltest')
-rw-r--r--lib/custodian/protocoltest/ssl.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/custodian/protocoltest/ssl.rb b/lib/custodian/protocoltest/ssl.rb
index 170a6f0..536879e 100644
--- a/lib/custodian/protocoltest/ssl.rb
+++ b/lib/custodian/protocoltest/ssl.rb
@@ -173,8 +173,10 @@ class SSLCheck
end
rescue OpenSSL::SSL::SSLError => err
unless retried
+ #
# retry with a different context
#
+ retried = true
ctx = OpenSSL::SSL::SSLContext.new(:SSLv3_client)
retry
end