]> granicus.if.org Git - python/commit
bpo-32622: Normalize ENOTCONN to ConnectionError on macOS (GH-5369)
authorYury Selivanov <yury@magic.io>
Sat, 27 Jan 2018 22:22:01 +0000 (17:22 -0500)
committerGitHub <noreply@github.com>
Sat, 27 Jan 2018 22:22:01 +0000 (17:22 -0500)
commit2a2247ce5e1984eb2f2c41b269b38dbb795a60cf
tree218825a29cd6a02cf471c04d79bfb4252da606f9
parent47c0b1f7d4115e6f15e6776c1f91d28e7d96fe0c
bpo-32622: Normalize ENOTCONN to ConnectionError on macOS (GH-5369)

On mac, sendfile throws ENOTCONN on a repeated sendfile call if
the connection is closed. Normalize it to behave like other systems.
Lib/asyncio/unix_events.py