summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-02-11 09:10:41 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2014-02-11 09:10:41 (GMT)
commit5d1ea04b067265918c7a1e2e588e84f8e2ba17f7 (patch)
tree3332dff0fc76b130805ebb4af5dcaf8672f988da
parent7bff8e1e2b1e395be327662c3c3dccd4e5af1058 (diff)
downloadcpython-5d1ea04b067265918c7a1e2e588e84f8e2ba17f7.zip
cpython-5d1ea04b067265918c7a1e2e588e84f8e2ba17f7.tar.gz
cpython-5d1ea04b067265918c7a1e2e588e84f8e2ba17f7.tar.bz2
Issue #20505: Oops, only print debug info if selector.select(timeout) took less
than timeout
-rw-r--r--Lib/asyncio/base_events.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/asyncio/base_events.py b/Lib/asyncio/base_events.py
index e9cb934..0200d35 100644
--- a/Lib/asyncio/base_events.py
+++ b/Lib/asyncio/base_events.py
@@ -639,7 +639,7 @@ class BaseEventLoop(events.AbstractEventLoop):
event_list = self._selector.select(timeout)
dt = time.perf_counter() - t0
dt_monotonic = time.monotonic() - t0_monotonic
- if not event_list and timeout: # and dt < timeout:
+ if not event_list and timeout and dt < timeout:
selector = self._selector.__class__.__name__
if (selector.startswith(("Poll", "Epoll", "Iocp"))
or timeout > 1e-3 or dt > 1e-3):