New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
poplib and imaplib should catch "OSError: [WinError 10022] An invalid argument was supplied" on shutdown #74514
Comments
See also bpo-30319: test_invalid_authentication() of test_imaplib: ConnectionResetError: [Errno 54] Connection reset by peer on AMD64 FreeBSD 9.x 3.6. test_login_cram_md5 (test.test_imaplib.ThreadedNetworkedTestsSSL) ... creating server ====================================================================== Traceback (most recent call last):
File "D:\buildarea\3.6.ware-win81-release\build\lib\test\support\__init__.py", line 2035, in decorator
return func(*args)
File "D:\buildarea\3.6.ware-win81-release\build\lib\test\test_imaplib.py", line 796, in test_login_cram_md5
self.assertEqual(ret, "OK")
File "D:\buildarea\3.6.ware-win81-release\build\lib\contextlib.py", line 89, in __exit__
next(self.gen)
File "D:\buildarea\3.6.ware-win81-release\build\lib\test\test_imaplib.py", line 567, in reaped_pair
client.logout()
File "D:\buildarea\3.6.ware-win81-release\build\lib\imaplib.py", line 622, in logout
self.shutdown()
File "D:\buildarea\3.6.ware-win81-release\build\lib\imaplib.py", line 320, in shutdown
self.sock.shutdown(socket.SHUT_RDWR)
File "D:\buildarea\3.6.ware-win81-release\build\lib\ssl.py", line 1040, in shutdown
socket.shutdown(self, how)
OSError: [WinError 10022] An invalid argument was supplied Ran 95 tests in 6.890s FAILED (errors=1, skipped=4) |
The error code is documented: https://msdn.microsoft.com/en-us/library/windows/desktop/ms740481(v=vs.85).aspx WSAEINVAL: The how parameter is not valid, or is not consistent with the socket type. For example, SD_SEND is used with a UNI_RECV socket type. |
The bug should now be catched. |
Oops, I wanted to write: "should now be fixed", sorry! |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: