File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -260,6 +260,7 @@ def send(self, data):
260260 def shutdown (self ):
261261 """Close I/O established in "open"."""
262262 self .file .close ()
263+ self .sock .shutdown (socket .SHUT_RDWR )
263264 self .sock .close ()
264265
265266
Original file line number Diff line number Diff line change @@ -217,6 +217,7 @@ def test_anonlogin(self):
217217
218218 def test_logout (self ):
219219 rs = self .server .logout ()
220+ self .server = None
220221 self .assertEqual (rs [0 ], 'BYE' )
221222
222223
Original file line number Diff line number Diff line change @@ -130,6 +130,7 @@ Tony Campbell
130130Brett Cannon
131131Mike Carlton
132132Terry Carroll
133+ Lorenzo M. Catucci
133134Donn Cave
134135Charles Cazabon
135136Per Cederqvist
Original file line number Diff line number Diff line change @@ -60,6 +60,9 @@ Core and Builtins
6060Library
6161-------
6262
63+ - Issue #4471: Properly shutdown socket in IMAP.shutdown(). Patch by
64+ Lorenzo M. Catucci.
65+
6366- Fix IMAP.login() to work properly.
6467
6568- Issue #9244: multiprocessing pool worker processes could terminate
You can’t perform that action at this time.
0 commit comments