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 @@ -372,6 +372,17 @@ def _detect_client_auth_requirement_with_tls_1_3(
372
372
else :
373
373
raise
374
374
375
+ except OSError as e :
376
+ # If these errors get propagated here, it means they're not part of the known/normal errors that
377
+ # can happen when trying to check requirements for client auth and defined in tls_connection.py
378
+ # Hence we re-raise these as "unknown" connection errors; might be caused by bad connectivity to
379
+ # the server (random disconnects, etc.) and the scan against this server should not be performed
380
+ raise ConnectionToServerFailed (
381
+ server_location = server_location ,
382
+ network_configuration = network_config ,
383
+ error_message = f'Unexpected connection error: "{ e .args } "' ,
384
+ )
385
+
375
386
finally :
376
387
ssl_connection_auth .close ()
377
388
You can’t perform that action at this time.
0 commit comments