summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2013-03-21 01:13:56 (GMT)
committerR David Murray <rdmurray@bitdance.com>2013-03-21 01:13:56 (GMT)
commit82c6b45c1421c9c7b687f8f8a53faa77d8ebbd55 (patch)
treedac0252ded6237ee87be620571e5c13a60b65f93 /Misc
parent61683625096676722dc487aa1e9894a5b604e220 (diff)
parentf1a40b4ec5bd25411189e33de1cdabdc6780cd8c (diff)
downloadcpython-82c6b45c1421c9c7b687f8f8a53faa77d8ebbd55.zip
cpython-82c6b45c1421c9c7b687f8f8a53faa77d8ebbd55.tar.gz
cpython-82c6b45c1421c9c7b687f8f8a53faa77d8ebbd55.tar.bz2
Merge: #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 6f2011a..ba34efe 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -292,6 +292,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 #16997: unittest.TestCase now provides a subTest() context manager
to procedurally generate, in an easy way, small test instances.