aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/asyncio/selector_events.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-07-25 22:36:05 +0200
committerVictor Stinner <victor.stinner@gmail.com>2014-07-25 22:36:05 +0200
commit65dd69a3da16257bd86b92900e5ec5a8dd26f1d9 (patch)
tree647ae1e17cfea3fa33d0a9882948dd4d7c199686 /Lib/asyncio/selector_events.py
parent64ba60aa57fd65d3107787cde6bb2f988e7e1c53 (diff)
downloadcpython-65dd69a3da16257bd86b92900e5ec5a8dd26f1d9.tar.gz
cpython-65dd69a3da16257bd86b92900e5ec5a8dd26f1d9.zip
asyncio: sync with Tulip
* Tulip issue #196: IocpProactor._poll() clears the reference to the overlapped operation when the operation is done. It would be better to clear the reference in a new _OverlappedFuture.set_result() method, but it cannot be done yet because of a weird bug. * BaseSelectorEventLoop._write_to_self() now logs errors in debug mode.
Diffstat (limited to 'Lib/asyncio/selector_events.py')
-rw-r--r--Lib/asyncio/selector_events.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/asyncio/selector_events.py b/Lib/asyncio/selector_events.py
index cd1a75aa78e..eca48b8e7c2 100644
--- a/Lib/asyncio/selector_events.py
+++ b/Lib/asyncio/selector_events.py
@@ -120,7 +120,10 @@ class BaseSelectorEventLoop(base_events.BaseEventLoop):
try:
csock.send(b'\0')
except OSError:
- pass
+ if self._debug:
+ logger.debug("Fail to write a null byte into the "
+ "self-pipe socket",
+ exc_info=True)
def _start_serving(self, protocol_factory, sock,
sslcontext=None, server=None):