Branch: refs/heads/3.5 Home: https://github.com/python/cpython Commit: c9ba45d1b71d86321e5422e8a2cbe6e52aaba6f4 https://github.com/python/cpython/commit/c9ba45d1b71d86321e5422e8a2cbe6e52aaba6f4 Author: Victor Stinner <victor.stinner at gmail.com> Date: 2017年05月16日 (2017年5月16日) Changed paths: M Lib/imaplib.py M Lib/poplib.py M Misc/NEWS Log Message: ----------- 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)