]> granicus.if.org Git - python/commit
asyncio, Tulip issue 204: Fix IocpProactor.recv()
authorVictor Stinner <victor.stinner@gmail.com>
Mon, 26 Jan 2015 21:30:49 +0000 (22:30 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Mon, 26 Jan 2015 21:30:49 +0000 (22:30 +0100)
commit41063d2a59a24e257cd9ce62137e36c862e3ab1e
tree65f8861d33e1cdd09058f464a5ad162a80bffc69
parent24dfa3c1d6b21e731bd167a13153968bba8fa5ce
asyncio, Tulip issue 204: Fix IocpProactor.recv()

If ReadFile() fails with ERROR_BROKEN_PIPE, the operation is not pending: don't
register the overlapped.

I don't know if WSARecv() can fail with ERROR_BROKEN_PIPE. Since
Overlapped.WSARecv() already handled ERROR_BROKEN_PIPE, let me guess that it
has the same behaviour than ReadFile().
Lib/asyncio/windows_events.py
Modules/overlapped.c