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

2015-02-26 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22435 ___

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

2015-02-26 Thread Martin Panter
Martin Panter added the comment: This is fixed in 3.4.3. I think it can be closed. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22435 ___ ___

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

2014-10-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 437002018d2d by Charles-François Natali in branch '2.7': Issue #22435: Fix a file descriptor leak when SocketServer bind fails. https://hg.python.org/cpython/rev/437002018d2d -- nosy: +python-dev ___

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

2014-10-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9c8016af2ed8 by Charles-François Natali in branch '3.4': Issue #22435: Fix a file descriptor leak when SocketServer bind fails. https://hg.python.org/cpython/rev/9c8016af2ed8 New changeset 3bd0f2516445 by Charles-François Natali in branch

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

2014-09-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: Patch looks of to me. -- versions: +Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22435 ___ ___

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

2014-09-19 Thread Charles-François Natali
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:

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

2014-09-18 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +neologix ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22435 ___ ___ Python-bugs-list mailing

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

2014-09-17 Thread Martin Panter
New submission from Martin Panter: Bind method may easily fail on Unix if there is no permission to bind to a privileged port: try: TCPServer((, 80), ...) ... except Exception as err: err ... PermissionError(13, 'Permission denied') gc.collect() __main__:1: ResourceWarning: unclosed