mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
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.
This commit is contained in:
parent
64ba60aa57
commit
65dd69a3da
2 changed files with 9 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue