mirror of
https://github.com/python/cpython.git
synced 2024-11-27 11:55:13 +08:00
bpo-34630: Skip logging SSL certificate errors by asyncio code (GH-9169)
This commit is contained in:
parent
5b10d5111d
commit
0dd71807a9
@ -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
|
||||
|
@ -0,0 +1,2 @@
|
||||
Don't log SSL certificate errors in asyncio code (connection error logging
|
||||
is skipped already).
|
Loading…
Reference in New Issue
Block a user