[issue12378] smtplib.SMTP_SSL leaks socket connections on SSL error
brian morrow
report at bugs.python.org
Tue Jun 24 01:13:11 CEST 2014
brian morrow added the comment:
Not sure if this is still relevant, but I've supplied a python2.7 patch for this issue. All regression tests still pass and the underlying socket connection is closed:
bmorrow at xorange:~/cpython$ ./python -m smtpd -n -c DebuggingServer localhost:2525
>>> import smtplib
>>> s = smtplib.SMTP_SSL("localhost", 2525)
[...]
ssl.SSLError: [Errno 1] _ssl.c:510: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol
bmorrow at xorange:~/cpython$ ps -ef | grep "./python"
bmorrow 19052 19742 0 19:08 pts/17 00:00:00 ./python
bmorrow at xorange:~/cpython$ lsof -P -p 19052 | grep 2525
bmorrow at xorange:~/cpython$
bmorrow at xorange:~/cpython$ lsof -P -p 19742 | grep 2525
bmorrow at xorange:~/cpython$
----------
keywords: +patch
nosy: +bhm
Added file: http://bugs.python.org/file35743/issue12378_py27.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12378>
_______________________________________
More information about the Python-bugs-list
mailing list