[issue5713] smtplib gets out of sync if server returns a 421 status

Jesús Cea Avión report at bugs.python.org
Mon Oct 19 17:16:26 CEST 2009


Jesús Cea Avión <jcea at jcea.es> added the comment:

So, if I understand the issue and the RFC correctly, when receiving a
421, we should close the connection and, if the 421 was received in the
"rcpt" phase, give back a dictionary with all pending directions as
"421" code, so the sending code knows they are 4xx codes and should
retry again later.

What return code would be give back if we get 421 in other situations?.
Maybe a regular "connection close"?.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5713>
_______________________________________


More information about the Python-bugs-list mailing list