]> granicus.if.org Git - python/commit
bpo-30329: Catch Windows error 10022 on shutdown() (#1538) (#1624)
authorVictor Stinner <victor.stinner@gmail.com>
Wed, 17 May 2017 00:38:30 +0000 (17:38 -0700)
committerGitHub <noreply@github.com>
Wed, 17 May 2017 00:38:30 +0000 (17:38 -0700)
commit800e4b7ad6b6f86c17408429852dfb47493d366e
treea950f39d0462fee5a3c7ff1df9d7ae7d0783aa30
parentb8b9f95f660d00ce9bd11bd9de429176858be3c5
bpo-30329: Catch Windows error 10022 on shutdown() (#1538) (#1624)

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

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