You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by gm...@apache.org on 2017/03/03 21:43:47 UTC
qpid-dispatch git commit: DISPATCH-626 - Add hints for getaddrinfo on
Solaris
Repository: qpid-dispatch
Updated Branches:
refs/heads/master a333a5039 -> 037904579
DISPATCH-626 - Add hints for getaddrinfo on Solaris
Project: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/commit/03790457
Tree: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/tree/03790457
Diff: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/diff/03790457
Branch: refs/heads/master
Commit: 037904579d47b742c9017c4adfa07fa4e36d019c
Parents: a333a50
Author: Ganesh Murthy <gm...@redhat.com>
Authored: Fri Mar 3 16:43:23 2017 -0500
Committer: Ganesh Murthy <gm...@redhat.com>
Committed: Fri Mar 3 16:43:23 2017 -0500
----------------------------------------------------------------------
python/qpid_dispatch_internal/policy/policy_util.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/qpid-dispatch/blob/03790457/python/qpid_dispatch_internal/policy/policy_util.py
----------------------------------------------------------------------
diff --git a/python/qpid_dispatch_internal/policy/policy_util.py b/python/qpid_dispatch_internal/policy/policy_util.py
index bacd078..a955808 100644
--- a/python/qpid_dispatch_internal/policy/policy_util.py
+++ b/python/qpid_dispatch_internal/policy/policy_util.py
@@ -52,7 +52,7 @@ class HostStruct(object):
@param[in] hostname host IP address to parse
"""
try:
- res = socket.getaddrinfo(hostname, 0)
+ res = socket.getaddrinfo(hostname, 0, socket.AF_UNSPEC, socket.SOCK_STREAM)
if len(res) == 0:
raise PolicyError("HostStruct: '%s' did not resolve to an IP address" % hostname)
foundFirst = False
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org