mirror of
https://github.com/python/cpython.git
synced 2025-11-22 11:36:23 +00:00
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.
This commit is contained in:
commit
f1a40b4ec5
3 changed files with 80 additions and 11 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue