Commit 0dd71807 authored by Andrew Svetlov's avatar Andrew Svetlov Committed by GitHub

bpo-34630: Skip logging SSL certificate errors by asyncio code (GH-9169)

parent 5b10d511
......@@ -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
......
Don't log SSL certificate errors in asyncio code (connection error logging
is skipped already).
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment