]> granicus.if.org Git - python/commit
Issue #23879, asyncio: SelectorEventLoop.sock_connect() must not call connect()
authorVictor Stinner <victor.stinner@gmail.com>
Tue, 7 Apr 2015 19:38:04 +0000 (21:38 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Tue, 7 Apr 2015 19:38:04 +0000 (21:38 +0200)
commitc9d11c341e0e140cb71fab6699fc1b49d8f35436
treef522364a9c1436f9a65ed8975390b5c1f54ca711
parent033c58ad972973ab4b8a87bede922bc9bf1a2cf9
Issue #23879, asyncio: SelectorEventLoop.sock_connect() must not call connect()
again if the first call to connect() raises an InterruptedError.

When the C function connect() fails with EINTR, the connection runs in
background. We have to wait until the socket becomes writable to be notified
when the connection succeed or fails.
Lib/asyncio/selector_events.py