commit | d79f3c8b3a544de869e01d8f229f114d7eb2dfa8 | [log] [tgz] |
---|---|---|
author | Antoine Pitrou <solipsis@pitrou.net> | Tue Nov 09 23:10:33 2010 +0000 |
committer | Antoine Pitrou <solipsis@pitrou.net> | Tue Nov 09 23:10:33 2010 +0000 |
tree | 5f0bbdb7c1d1b0255829f36309f43a267eb640c3 | |
parent | b1436f185dac249f0f6dc342b2a543ae2d1db63d [diff] [blame] |
Issue #4471: Properly shutdown socket in IMAP.shutdown(). Patch by Lorenzo M. Catucci.
diff --git a/Lib/imaplib.py b/Lib/imaplib.py index 1b37546..e020747 100644 --- a/Lib/imaplib.py +++ b/Lib/imaplib.py
@@ -260,6 +260,7 @@ def shutdown(self): """Close I/O established in "open".""" self.file.close() + self.sock.shutdown(socket.SHUT_RDWR) self.sock.close()