Merge 3.5 (asyncio)

This commit is contained in:
Victor Stinner 2016-04-01 21:43:54 +02:00
commit 00f4648a39
5 changed files with 10 additions and 5 deletions

View file

@ -579,8 +579,7 @@ class _SelectorTransport(transports._FlowControlMixin,
def _fatal_error(self, exc, message='Fatal error on transport'):
# Should be called from exception handler only.
if isinstance(exc, (BrokenPipeError,
ConnectionResetError, ConnectionAbortedError)):
if isinstance(exc, base_events._FATAL_ERROR_IGNORE):
if self._loop.get_debug():
logger.debug("%r: %s", self, message, exc_info=True)
else: