From 0d32948a1c78385f9305799c5cb47127492c4320 Mon Sep 17 00:00:00 2001 From: Tom Clegg Date: Sun, 1 Feb 2015 19:15:51 -0500 Subject: [PATCH] 3021: Add comment about IPv4/IPv6 trap in websocket client. --- sdk/python/arvados/events.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sdk/python/arvados/events.py b/sdk/python/arvados/events.py index fc86cb46d4..94dd62b4ed 100644 --- a/sdk/python/arvados/events.py +++ b/sdk/python/arvados/events.py @@ -22,6 +22,11 @@ class EventClient(WebSocketClient): ssl_options['cert_reqs'] = ssl.CERT_NONE else: ssl_options['cert_reqs'] = ssl.CERT_REQUIRED + + # Warning: If the host part of url resolves to both IPv6 and + # IPv4 addresses (common with "localhost"), only one of them + # will be attempted -- and it might not be the right one. See + # ws4py's WebSocketBaseClient.__init__. super(EventClient, self).__init__(url, ssl_options=ssl_options) self.filters = filters self.on_event = on_event -- 2.30.2