]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Merge: #5713: Handle 421 error codes during sendmail by closing the socket.
authorR David Murray <rdmurray@bitdance.com>
Thu, 21 Mar 2013 01:13:56 +0000 (21:13 -0400)
committerR David Murray <rdmurray@bitdance.com>
Thu, 21 Mar 2013 01:13:56 +0000 (21:13 -0400)
commit82c6b45c1421c9c7b687f8f8a53faa77d8ebbd55
treedac0252ded6237ee87be620571e5c13a60b65f93
parent61683625096676722dc487aa1e9894a5b604e220
parentf1a40b4ec5bd25411189e33de1cdabdc6780cd8c
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.
Lib/smtplib.py
Lib/test/test_smtplib.py
Misc/NEWS