New submission from Yury Selivanov <yseliva...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue34263>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to