mirror of
https://github.com/python/cpython
synced 2026-11-06 09:02:40 +03:00
Queue.get() and Queue.put() computed their timeout deadline from
time.time(), the wall clock. If the system clock was stepped (NTP, a
manual change) while a call was blocked, the timeout could over- or
under-wait. queue.Queue uses time.monotonic() for the same reason.
Compute the deadline and check it against time.monotonic() instead.
(cherry picked from commit
|
||
|---|---|---|
| .. | ||
| __init__.py | ||
| __main__.py | ||
| test_api.py | ||
| test_channels.py | ||
| test_lifecycle.py | ||
| test_queues.py | ||
| test_stress.py | ||
| utils.py | ||