[issue21641] smtplib leaves open sockets around if SMTPResponseException is raised in __init__

Claudiu.Popa report at bugs.python.org
Tue Jun 3 10:23:48 CEST 2014


Claudiu.Popa added the comment:

It's actually better to close the socket in __init__ in this case.

----------
Added file: http://bugs.python.org/file35466/issue21641.patch

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


More information about the Python-bugs-list mailing list