[issue17707] Multiprocessing queue get method does not block for short timeouts
Charles-François Natali
report at bugs.python.org
Sat Apr 13 08:31:22 CEST 2013
Charles-François Natali added the comment:
Indeed, that's a regression introduced by fix for issue #10527.
Just a rounding error:
"""
--- Lib/multiprocessing/connection.py.orig 2013-04-13 06:27:57.000000000 +0000
+++ Lib/multiprocessing/connection.py 2013-04-13 06:25:23.000000000 +0000
@@ -862,7 +862,7 @@
if hasattr(select, 'poll'):
def _poll(fds, timeout):
if timeout is not None:
- timeout = int(timeout) * 1000 # timeout is in milliseconds
+ timeout = int(timeout * 1000) # timeout is in milliseconds
fd_map = {}
pollster = select.poll()
for fd in fds:
"""
(the original patch really wasn't reviewed properly...)
----------
nosy: +neologix, sbt
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17707>
_______________________________________
More information about the Python-bugs-list
mailing list