]> granicus.if.org Git - python/commit
bpo-30329: Catch Windows error 10022 on shutdown() (#1538) (#1621)
authorVictor Stinner <victor.stinner@gmail.com>
Tue, 16 May 2017 23:02:35 +0000 (16:02 -0700)
committerGitHub <noreply@github.com>
Tue, 16 May 2017 23:02:35 +0000 (16:02 -0700)
commitc9ba45d1b71d86321e5422e8a2cbe6e52aaba6f4
tree12c5e527567471dbddc4cb65ec27ea9e923242b4
parent77606957e71ce477d2c5569718f0fc36f05c6f59
bpo-30329: Catch Windows error 10022 on shutdown() (#1538) (#1621)

Catch the Windows socket WSAEINVAL error (code 10022) in imaplib and
poplib on shutdown(SHUT_RDWR): An invalid operation was attempted

This error occurs sometimes on SSL connections.
(cherry picked from commit 83a2c2879839da2e10037f5e4af1bd1dafbf1a52)
Lib/imaplib.py
Lib/poplib.py
Misc/NEWS