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

2014-01-20 Thread Charles-François Natali
Charles-François Natali added the comment: AFAICT, this also affects poll(). Although it's supposed to be passed an integer, passing a float will result in a truncation towards 0: """ $ strace -e poll python -c "import select; p = select.poll(); p.poll(0.9)" poll(0x23321b0, 0, 0)

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

2014-01-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: Looks good to me on the principle. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

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

2014-01-20 Thread STINNER Victor
STINNER Victor added the comment: Bug report in Tulip project, the bug affects also the new asyncio module of Python 3.4: http://code.google.com/p/tulip/issues/detail?id=106 -- ___ Python tracker _

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

2014-01-20 Thread STINNER Victor
New submission from STINNER Victor: Hi, while comparing performances of Tulip and Trollius projects (asyncio module), I found a bug. The event loop is called too many times when a callback is scheduled with a timeout and the epoll selector is used, especially for timeout close to one milliseco