[issue35749] Ignore exception if event loop wakeup pipe is full

Andrew Svetlov report at bugs.python.org
Wed Jan 16 03:17:27 EST 2019


New submission from Andrew Svetlov <andrew.svetlov at gmail.com>:

Asyncio uses a pipe to wakeup event loop in cases of
1. Signal handlers (set_wakeup_fd)
2. Calling asyncio code from another thread

In both cases, it sends b'\0' to the pipe to wake up a loop.
If the pipe is full OSError is raised.
asyncio logs these exceptions in debug mode.
The logging can be omitted because if the pipe is full the loop wakes up and drains the pipe anyway.

----------
messages: 333751
nosy: asvetlov
priority: normal
severity: normal
status: open
title: Ignore exception if event loop wakeup pipe is full

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35749>
_______________________________________


More information about the Python-bugs-list mailing list