]> granicus.if.org Git - python/commit
Issue #23293, asyncio: Rewrite IocpProactor.connect_pipe()
authorVictor Stinner <victor.stinner@gmail.com>
Thu, 22 Jan 2015 21:55:08 +0000 (22:55 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Thu, 22 Jan 2015 21:55:08 +0000 (22:55 +0100)
commit7ffa2c5fdda8a9cc254edf67c4458b15db1252fa
tree1a9d320b24c440a94d5e48b2d0d456b5731e059f
parent752aba7f999b08c833979464a36840de8be0baf0
Issue #23293, asyncio: Rewrite IocpProactor.connect_pipe()

Add _overlapped.ConnectPipe() which tries to connect to the pipe for
asynchronous I/O (overlapped): call CreateFile() in a loop until it doesn't
fail with ERROR_PIPE_BUSY. Use an increasing delay between 1 ms and 100 ms.

Remove Overlapped.WaitNamedPipeAndConnect() which is no more used.
Lib/asyncio/windows_events.py
Modules/overlapped.c