projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8425bf8
)
Issue #20505: Oops, only print debug info if selector.select(timeout) took less
author
Victor Stinner
<victor.stinner@gmail.com>
Tue, 11 Feb 2014 09:10:41 +0000
(10:10 +0100)
committer
Victor Stinner
<victor.stinner@gmail.com>
Tue, 11 Feb 2014 09:10:41 +0000
(10:10 +0100)
than timeout
Lib/asyncio/base_events.py
patch
|
blob
|
history
diff --git
a/Lib/asyncio/base_events.py
b/Lib/asyncio/base_events.py
index e9cb9349ba13710698e8acad44105ae7b8f91b73..0200d355579fc5d25d0df9acd5ac83963e4f2cdf 100644
(file)
--- 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):