mirror of
https://github.com/python/cpython.git
synced 2026-04-04 19:13:16 +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 @@
|
|||
_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…
Add table
Add a link
Reference in a new issue