File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -388,6 +388,17 @@ def _detect_client_auth_requirement_with_tls_1_3(
388
388
else :
389
389
raise
390
390
391
+ except OSError as e :
392
+ # If these errors get propagated here, it means they're not part of the known/normal errors that
393
+ # can happen when trying to check requirements for client auth and defined in tls_connection.py
394
+ # Hence we re-raise these as "unknown" connection errors; might be caused by bad connectivity to
395
+ # the server (random disconnects, etc.) and the scan against this server should not be performed
396
+ raise ConnectionToServerFailed (
397
+ server_location = server_location ,
398
+ network_configuration = network_config ,
399
+ error_message = f'Unexpected connection error: "{ e .args } "' ,
400
+ )
401
+
391
402
finally :
392
403
ssl_connection_auth .close ()
393
404
You can’t perform that action at this time.
0 commit comments