diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2014-07-25 20:36:05 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2014-07-25 20:36:05 (GMT) |
commit | 65dd69a3da16257bd86b92900e5ec5a8dd26f1d9 (patch) | |
tree | 647ae1e17cfea3fa33d0a9882948dd4d7c199686 /Lib/asyncio/windows_events.py | |
parent | 64ba60aa57fd65d3107787cde6bb2f988e7e1c53 (diff) | |
download | cpython-65dd69a3da16257bd86b92900e5ec5a8dd26f1d9.zip cpython-65dd69a3da16257bd86b92900e5ec5a8dd26f1d9.tar.gz cpython-65dd69a3da16257bd86b92900e5ec5a8dd26f1d9.tar.bz2 |
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/windows_events.py')
-rw-r--r-- | Lib/asyncio/windows_events.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/asyncio/windows_events.py b/Lib/asyncio/windows_events.py index 375003c..65ecf34 100644 --- a/Lib/asyncio/windows_events.py +++ b/Lib/asyncio/windows_events.py @@ -489,6 +489,11 @@ class IocpProactor: else: f.set_result(value) self._results.append(f) + # FIXME, tulip issue #196: add _OverlappedFuture.set_result() + # method to clear the refrence, don't do it here (f may + # by a _WaitHandleFuture). Problem: clearing the reference + # in _register() if ov.pedding is False leads to weird bugs. + f._ov = None ms = 0 def _stop_serving(self, obj): |