]> granicus.if.org Git - python/commit
bpo-30329: Catch Windows error 10022 on shutdown() (#1538) (#1620)
authorVictor Stinner <victor.stinner@gmail.com>
Tue, 16 May 2017 22:29:41 +0000 (15:29 -0700)
committerGitHub <noreply@github.com>
Tue, 16 May 2017 22:29:41 +0000 (15:29 -0700)
commitaaa053652556aa4e59cb68f3983a09ced1d1fe2a
tree9c445960ad06a7f15958436f877c614e14a40ce3
parent0d267041c40a3ab655676b885c0ba35ed9685848
bpo-30329: Catch Windows error 10022 on shutdown() (#1538) (#1620)

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