[issue20311] epoll.poll(timeout) and PollSelector.select(timeout) must round the timeout to the upper bound

Antoine Pitrou report at bugs.python.org
Fri Jan 24 00:27:14 CET 2014


Antoine Pitrou added the comment:

> It doesn't fix the case when EpollSelector.select() got an InterruptedError.

That should be very rare. I don't see a problem with retrying on EINTR.

> Adding 1 ms works around the (now fixed) timeout rounding issue but I
> prefered to round differently to not sleep longer than requested (try to
> respect deadline).

What are you going to round exactly? The epoll timeout? The deadline?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20311>
_______________________________________


More information about the Python-bugs-list mailing list