[Python-checkins] cpython (3.4): Issue #20505: Oops, only print debug info if selector.select(timeout) took less
larry.hastings
python-checkins at python.org
Mon Mar 17 07:31:23 CET 2014
http://hg.python.org/cpython/rev/af840e781700
changeset: 89698:af840e781700
branch: 3.4
user: Victor Stinner <victor.stinner at gmail.com>
date: Tue Feb 11 10:10:41 2014 +0100
summary:
Issue #20505: Oops, only print debug info if selector.select(timeout) took less
than timeout
files:
Lib/asyncio/base_events.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Lib/asyncio/base_events.py b/Lib/asyncio/base_events.py
--- a/Lib/asyncio/base_events.py
+++ b/Lib/asyncio/base_events.py
@@ -639,7 +639,7 @@
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):
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list