[issue15277] Fix resource leak in support.py:_is_ipv6_enabled

2012-07-07 Thread Ross Lagerwall
Ross Lagerwall added the comment: Ah, I see you've already opened a new issue for that (issue15284). -- ___ Python tracker ___ ___ Py

[issue15277] Fix resource leak in support.py:_is_ipv6_enabled

2012-07-07 Thread Ross Lagerwall
Ross Lagerwall added the comment: Thanks. test_socket seems to be broken in all branches when running with net.ipv6.conf.all.disable_ipv6 = 1 but I'll open a new issue for that. -- assignee: -> rosslagerwall nosy: +rosslagerwall resolution: -> fixed stage: -> committed/rejected sta

[issue15277] Fix resource leak in support.py:_is_ipv6_enabled

2012-07-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset c9299edf1f67 by Ross Lagerwall in branch 'default': #15277: Fix a resource leak in support.py when IPv6 is disabled. http://hg.python.org/cpython/rev/c9299edf1f67 -- nosy: +python-dev ___ Python tracker

[issue15277] Fix resource leak in support.py:_is_ipv6_enabled

2012-07-07 Thread Brian Brazil
New submission from Brian Brazil : I'm running Ubuntu Precise and have net.ipv6.conf.all.disable_ipv6 = 1 in my sysctl.conf. With this configuration at head there's a fd leak in _is_ipv6_enabled in support.py when the bind fails, which the attached patch should fix. -- components: Tes