summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2013-03-21 01:12:17 (GMT)
committerR David Murray <rdmurray@bitdance.com>2013-03-21 01:12:17 (GMT)
commitf1a40b4ec5bd25411189e33de1cdabdc6780cd8c (patch)
tree154a2305376a4138927c8d31c810e8c7dd2bbd85 /Misc
parentf219c8da490cdffcacdc419414871fae761d499d (diff)
parentd312c740f15b2ee8ba242fb779884f7e19b28a7e (diff)
downloadcpython-f1a40b4ec5bd25411189e33de1cdabdc6780cd8c.zip
cpython-f1a40b4ec5bd25411189e33de1cdabdc6780cd8c.tar.gz
cpython-f1a40b4ec5bd25411189e33de1cdabdc6780cd8c.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 1377e59..fe5afdd 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -196,6 +196,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 #17192: Update the ctypes module's libffi to v3.0.13. This
specifically addresses a stack misalignment issue on x86 and issues on
some more recent platforms.