summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2013-03-21 00:36:14 (GMT)
committerR David Murray <rdmurray@bitdance.com>2013-03-21 00:36:14 (GMT)
commitd312c740f15b2ee8ba242fb779884f7e19b28a7e (patch)
tree1f5ed34172138c7e5a916e6b964e0bda5b16821c /Misc
parent958f7ae8651bb6347a0401fe9db7d0a219daf156 (diff)
downloadcpython-d312c740f15b2ee8ba242fb779884f7e19b28a7e.zip
cpython-d312c740f15b2ee8ba242fb779884f7e19b28a7e.tar.gz
cpython-d312c740f15b2ee8ba242fb779884f7e19b28a7e.tar.bz2
#5713: Handle 421 error codes during sendmail by closing the socket.
This is a partial fix to the issue of servers disconnecting unexpectedly; in this case the 421 says they are disconnecting, so we close the socket and return the 421 in the appropriate error context. Original patch by Mark Sapiro, updated by Kushal Das, with additional tests by me.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS4
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 856eae4..20ffcc9 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -233,6 +233,10 @@ Core and Builtins
Library
-------
+- Issue #5713: smtplib now handles 421 (closing connection) error codes when
+ sending mail by closing the socket and reporting the 421 error code via the
+ exception appropriate to the command that received the error response.
+
- Issue #8862: Fixed curses cleanup when getkey is interrputed by a signal.
- Issue #17443: impalib.IMAP4_stream was using the default unbuffered IO