Browse Source

Bad exception handling

aeris 2 years ago
parent
commit
a212aa0711
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      lib/cryptcheck/tls/server.rb

+ 2
- 1
lib/cryptcheck/tls/server.rb View File

@@ -284,8 +284,9 @@ module CryptCheck
284 284
 						@cert, @chain = ssl_client(method) { |s| [s.peer_cert, s.peer_cert_chain] }
285 285
 						Logger.debug { "Certificate #{@cert.subject}" }
286 286
 						break
287
-					rescue TLSTimeout, ::SystemCallError
287
+					rescue Timeout, TLSTimeout, ConnectionError, ::SystemCallError
288 288
 						raise
289
+					rescue
289 290
 					end
290 291
 				end
291 292
 				raise TLSNotAvailableException unless @cert

Loading…
Cancel
Save