changeset: 89143:9c1840e8d643 user: Victor Stinner date: Tue Feb 11 10:10:41 2014 +0100 files: Lib/asyncio/base_events.py description: Issue #20505: Oops, only print debug info if selector.select(timeout) took less than timeout diff -r 03cb6ddc7040 -r 9c1840e8d643 Lib/asyncio/base_events.py --- a/Lib/asyncio/base_events.py Tue Feb 11 10:08:08 2014 +0100 +++ b/Lib/asyncio/base_events.py Tue Feb 11 10:10:41 2014 +0100 @@ -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):