You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Ganesh Murthy (JIRA)" <ji...@apache.org> on 2016/04/27 18:20:13 UTC

[jira] [Comment Edited] (DISPATCH-216) system_tests_protocol_family fails on systems with no IPv6

    [ https://issues.apache.org/jira/browse/DISPATCH-216?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15260409#comment-15260409 ] 

Ganesh Murthy edited comment on DISPATCH-216 at 4/27/16 4:20 PM:
-----------------------------------------------------------------

In socket.py, there is a line that imports _socket

I opened up that _socket and there is a definition for has_ipv6 and it is set to True.
Here is the snippet
{noformat}
EAI_OVERFLOW = -12
EAI_SERVICE = -8
EAI_SOCKTYPE = -7
EAI_SYSTEM = -11

has_ipv6 = True

HCI_DATA_DIR = 1

HCI_FILTER = 2

HCI_TIME_STAMP = 3
{noformat}

So, if your Python interpreter has support for IPv6, the has_ipv6 is always set to True


was (Author: ganeshmurthy):
In socket.py, there is a line that imports _socket

I opened up that _socket and there is a definition for has_ipv6 and it is set to True.

So, if your Python interpreter has support for IPv6, the has_ipv6 is always set to True

> system_tests_protocol_family fails on systems with no IPv6
> ----------------------------------------------------------
>
>                 Key: DISPATCH-216
>                 URL: https://issues.apache.org/jira/browse/DISPATCH-216
>             Project: Qpid Dispatch
>          Issue Type: Bug
>          Components: Tests
>    Affects Versions: 0.5
>            Reporter: Chuck Rolke
>            Assignee: Ganesh Murthy
>
> The test assumes IPv6 and fails without it.
> To disable IPv6 temporarily on Fedora:
> {noformat}
> sudo sh -c 'echo 1 > /proc/sys/net/ipv6/conf/all/disable_ipv6' 
> {noformat}
> To test for IPv6 in Python
> {noformat}
>   import socket
>   if socket.has_ipv6:
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org