mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
bpo-34630: Skip logging SSL certificate errors by asyncio code (GH-9169)
This commit is contained in:
parent
5b10d5111d
commit
0dd71807a9
2 changed files with 5 additions and 0 deletions
|
@ -62,6 +62,9 @@ _MIN_CANCELLED_TIMER_HANDLES_FRACTION = 0.5
|
|||
_FATAL_ERROR_IGNORE = (BrokenPipeError,
|
||||
ConnectionResetError, ConnectionAbortedError)
|
||||
|
||||
if ssl is not None:
|
||||
_FATAL_ERROR_IGNORE = _FATAL_ERROR_IGNORE + (ssl.SSLCertVerificationError,)
|
||||
|
||||
_HAS_IPv6 = hasattr(socket, 'AF_INET6')
|
||||
|
||||
# Maximum timeout passed to select to avoid OS limitations
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue