diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2014-12-18 22:47:27 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2014-12-18 22:47:27 (GMT) |
commit | 1b9763d0a9c62c13dc2a06770032e5906b610c96 (patch) | |
tree | 5908c0aae7f5fb134d71eafd16defad46ad88474 /Lib/asyncio/windows_events.py | |
parent | dc7765d12c8b3008935659d70970ac3cd563e566 (diff) | |
download | cpython-1b9763d0a9c62c13dc2a06770032e5906b610c96.zip cpython-1b9763d0a9c62c13dc2a06770032e5906b610c96.tar.gz cpython-1b9763d0a9c62c13dc2a06770032e5906b610c96.tar.bz2 |
asyncio: sync with Tulip
* Fix a race condition in BaseSubprocessTransport._try_finish().
If the process exited before the _post_init() method was called, scheduling
the call to _call_connection_lost() with call_soon() is wrong:
connection_made() must be called before connection_lost().
Reuse the BaseSubprocessTransport._call() method to schedule the call to
_call_connection_lost() to ensure that connection_made() and
connection_lost() are called in the correct order.
* Add repr(PipeHandle)
* Fix typo
Diffstat (limited to 'Lib/asyncio/windows_events.py')
-rw-r--r-- | Lib/asyncio/windows_events.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/asyncio/windows_events.py b/Lib/asyncio/windows_events.py index 6763f0b..0773d06 100644 --- a/Lib/asyncio/windows_events.py +++ b/Lib/asyncio/windows_events.py @@ -402,7 +402,7 @@ class IocpProactor: ov.getresult() return pipe - # FIXME: Tulip issue 196: why to we neeed register=False? + # FIXME: Tulip issue 196: why do we need register=False? # See also the comment in the _register() method return self._register(ov, pipe, finish_accept_pipe, register=False) |