Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion 9 Lib/asyncio/proactor_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -765,7 +765,14 @@ def _make_self_pipe(self):
def _loop_self_reading(self, f=None):
try:
if f is not None:
f.result() # may raise
try:
f.result() # may raise
except ConnectionResetError:
# when run_forever exits, the done callback added at
# the end of this function may still be pending and a subclass
# may have also cancelled the future. this will result in a
# spurious ConnectionResetError. ignore that error.
pass
f = self._proactor.recv(self._ssock, 4096)
except exceptions.CancelledError:
# _close_self_pipe() has been called, stop waiting for data
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.