[issue22435] socketserver.TCPSocket leaks socket to garbage collector if server_bind() fails

Charles-François Natali report at bugs.python.org
Fri Sep 19 23:21:36 CEST 2014


Charles-François Natali added the comment:

Patch attached.
The test wouldn't result in FD exhaustion on CPython because of the reference counting, but should still trigger RessourceWarning.

----------
keywords: +patch
nosy: +haypo, pitrou
stage:  -> patch review
Added file: http://bugs.python.org/file36665/socketserver_bind_leak.diff

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


More information about the Python-bugs-list mailing list