mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Fix issue #17707: multiprocessing.Queue's get() method does not block for short timeouts.
This commit is contained in:
parent
22b9e651c2
commit
308307190f
3 changed files with 11 additions and 1 deletions
|
@ -862,7 +862,7 @@ else:
|
|||
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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue