This is an automated email from the ASF dual-hosted git repository.

chug pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/qpid-dispatch.git


The following commit(s) were added to refs/heads/master by this push:
     new d37ee8c  DISPATCH-1462: close socket used in IPv6 availability test
d37ee8c is described below

commit d37ee8c3ae0344e462d816c90db8a915588c2b1d
Author: Chuck Rolke <[email protected]>
AuthorDate: Fri Oct 25 15:53:19 2019 -0400

    DISPATCH-1462: close socket used in IPv6 availability test
---
 python/qpid_dispatch_internal/policy/policy_util.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/python/qpid_dispatch_internal/policy/policy_util.py 
b/python/qpid_dispatch_internal/policy/policy_util.py
index b7a52cc..ae7914d 100644
--- a/python/qpid_dispatch_internal/policy/policy_util.py
+++ b/python/qpid_dispatch_internal/policy/policy_util.py
@@ -41,6 +41,7 @@ def is_ipv6_enabled():
     try:
         sock = socket.socket(socket.AF_INET6, socket.SOCK_STREAM)
         sock.bind(('::1', 0))
+        sock.close()
     except Exception as e:
         ipv6_enabled = False
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to