There was an error while loading. Please reload this page.
1 parent bad71a2 commit 5c71eb7Copy full SHA for 5c71eb7
1 file changed
Lib/asyncio/proactor_events.py
@@ -605,13 +605,6 @@ def _loop_reading(self, fut=None):
605
self._loop.call_soon(self._loop_reading)
606
except OSError as exc:
607
self._protocol.error_received(exc)
608
- if not self._closing and not self._conn_lost:
609
- # Some errors are transient and recoverable, e.g. a
610
- # ConnectionResetError raised synchronously by WSARecvFrom()
611
- # from a stale ICMP port-unreachable notification on a UDP
612
- # socket. Re-arm the read loop instead of leaving it dead
613
- # (gh-127057).
614
- self._loop.call_soon(self._loop_reading)
615
except exceptions.CancelledError:
616
if not self._closing:
617
raise
0 commit comments