diff --git a/uvloop/handles/basetransport.pyx b/uvloop/handles/basetransport.pyx index 84051afe..2b0de10b 100644 --- a/uvloop/handles/basetransport.pyx +++ b/uvloop/handles/basetransport.pyx @@ -40,7 +40,7 @@ cdef class UVBaseTransport(UVSocketHandle): self._force_close(exc) - if not isinstance(exc, FATAL_SSL_ERROR_IGNORE): + if not isinstance(exc, OSError): if throw or self._loop is None: raise exc diff --git a/uvloop/handles/streamserver.pyx b/uvloop/handles/streamserver.pyx index 5343d50d..7b2258dd 100644 --- a/uvloop/handles/streamserver.pyx +++ b/uvloop/handles/streamserver.pyx @@ -92,7 +92,7 @@ cdef class UVStreamServer(UVSocketHandle): self._close() - if not isinstance(exc, FATAL_SSL_ERROR_IGNORE): + if not isinstance(exc, OSError): if throw or self._loop is None: raise exc diff --git a/uvloop/includes/stdlib.pxi b/uvloop/includes/stdlib.pxi index abd304de..474c0826 100644 --- a/uvloop/includes/stdlib.pxi +++ b/uvloop/includes/stdlib.pxi @@ -133,13 +133,6 @@ cdef int ssl_SSL_ERROR_WANT_READ = ssl.SSL_ERROR_WANT_READ cdef int ssl_SSL_ERROR_WANT_WRITE = ssl.SSL_ERROR_WANT_WRITE cdef int ssl_SSL_ERROR_SYSCALL = ssl.SSL_ERROR_SYSCALL -cdef FATAL_SSL_ERROR_IGNORE = ( - BrokenPipeError, - ConnectionResetError, - ConnectionAbortedError, - ssl.CertificateError, -) - cdef uint64_t MAIN_THREAD_ID = threading.main_thread().ident cdef int subprocess_PIPE = subprocess.PIPE diff --git a/uvloop/sslproto.pyx b/uvloop/sslproto.pyx index 700ef78e..42bbb74b 100644 --- a/uvloop/sslproto.pyx +++ b/uvloop/sslproto.pyx @@ -839,7 +839,7 @@ cdef class SSLProtocol: if self._transport: self._transport._force_close(exc) - if isinstance(exc, FATAL_SSL_ERROR_IGNORE): + if isinstance(exc, OSError): if self._loop.get_debug(): aio_logger.debug("%r: %s", self, message, exc_info=True) elif not isinstance(exc, aio_CancelledError):