-
Notifications
You must be signed in to change notification settings - Fork 913
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix exceptions if python is built without ipv6 support. #515
Conversation
Admittedly a python bug, but the workaround is already present in other parts of this file.
Can one of the admins verify this patch? |
if use_ipv6(): | ||
reverse_ips = [host[4][0] for host in socket.getaddrinfo(socket.gethostname(), 0, 0, 0, socket.SOL_TCP)] | ||
else: | ||
reverse_ips = [host[4][0] for host in socket.getaddrinfo(socket.gethostname(), 0, socket.AF_INET, 0, socket.SOL_TCP)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the same way as it is already used in other parts of the code (
if use_ipv6(): |
…pport. A bit different than rosgraph fix because we do not have use_ipv6 here. See e.g. http://bugs.python.org/issue16208#msg178764
ed1b75b
to
afe5742
Compare
This change breaks a unit test: http://jenkins.ros.org/job/devel-indigo-ros_comm/125/ARCH_PARAM=amd64,UBUNTU_PARAM=trusty,label=devel/testReport/unit.test_roslaunch_launch/TestRoslaunchLaunch/test_validate_master_launch/ @aballier Why does you patch use And changed it back to use |
* upstream/indigo-devel: fix regression of PR ros#515 Adding support for fixed-width floating-point and integer array values as per issue ros#400 Fix exception at roslaunch startup if python is build without ipv6 support. Fix exception at roscore startup if python has ipv6 disabled. use fileno comparison only as an alternative and when available fix removal of QueuedConnection leading to wrong subscriber count (fix ros#526) fix comment (fix ros#529) unregister statistics publisher Fix: TCPROS header validation crash when `callerid` header is not set avoid storing subscriber reference in SubscriberStatisticsLogger only create SubscriberStatisticsLogger when enabled make param functions thread-safe Do not use Python when building for Android Do not use ifaddrs on Android as it is not natively supported
* upstream/indigo-devel: fix regression of PR ros#515 Adding support for fixed-width floating-point and integer array values as per issue ros#400 Fix exception at roslaunch startup if python is build without ipv6 support. Fix exception at roscore startup if python has ipv6 disabled. use fileno comparison only as an alternative and when available fix removal of QueuedConnection leading to wrong subscriber count (fix ros#526) fix comment (fix ros#529) unregister statistics publisher Fix: TCPROS header validation crash when `callerid` header is not set avoid storing subscriber reference in SubscriberStatisticsLogger only create SubscriberStatisticsLogger when enabled make param functions thread-safe Do not use Python when building for Android Do not use ifaddrs on Android as it is not natively supported
See:
http://bugs.python.org/issue16208
http://bugs.python.org/issue7735