]> granicus.if.org Git - python/commit
Merge: #5713: Handle 421 error codes during sendmail by closing the socket.
authorR David Murray <rdmurray@bitdance.com>
Thu, 21 Mar 2013 01:12:17 +0000 (21:12 -0400)
committerR David Murray <rdmurray@bitdance.com>
Thu, 21 Mar 2013 01:12:17 +0000 (21:12 -0400)
commitf1a40b4ec5bd25411189e33de1cdabdc6780cd8c
tree154a2305376a4138927c8d31c810e8c7dd2bbd85
parentf219c8da490cdffcacdc419414871fae761d499d
parentd312c740f15b2ee8ba242fb779884f7e19b28a7e
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