[New-bugs-announce] [issue34263] asyncio: "relative *delay* or absolute *when* should not exceed one day"

Yury Selivanov report at bugs.python.org
Sat Jul 28 09:49:09 EDT 2018


New submission from Yury Selivanov <yselivanov at gmail.com>:

asyncio documentation has this bit on timeouts:

    Timeouts (relative *delay* or absolute *when*) should not exceed one day.

Victor told me that the actual reason for this recommendation is a limitation in epoll (or other OS/selector) that prevents us from waiting for events longer than a day or so.

The solution to this problem is simple: we need to cap the maximum time we pass to the "selector.select()" function (in base_events.py/_run_once) to one day.

----------
components: asyncio
messages: 322561
nosy: asvetlov, vstinner, yselivanov
priority: normal
severity: normal
status: open
title: asyncio: "relative *delay* or absolute *when* should not exceed one day"
versions: Python 3.7, Python 3.8

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


More information about the New-bugs-announce mailing list