From de6e23e5121802241f401f4fb54ae7644bc4c0c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krist=C3=B3f=20T=C3=B3th?= Date: Mon, 5 Feb 2018 14:23:46 +0100 Subject: [PATCH] =?UTF-8?q?Remove=20thread=20safety=20warning:=20problem?= =?UTF-8?q?=20was=20nonexsistent=20=C2=AF\=5F(=E3=83=84)=5F/=C2=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/tfw/networking/zmq_websocket_handler.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/tfw/networking/zmq_websocket_handler.py b/lib/tfw/networking/zmq_websocket_handler.py index 97d9b6d..8017220 100644 --- a/lib/tfw/networking/zmq_websocket_handler.py +++ b/lib/tfw/networking/zmq_websocket_handler.py @@ -9,10 +9,8 @@ log = logging.getLogger(__name__) class ZMQWebSocketHandler(WebSocketHandler): - _event_handler_connector = EventHandlerConnector() #----. - # TODO: investigate thread safety! <-----------------' - # ZMQ sockets shared between several WebSocketHandler instances - # http://pyzmq.readthedocs.io/en/latest/morethanbindings.html#thread-safety + _event_handler_connector = EventHandlerConnector() + def __init__(self, application, request, **kwargs): super().__init__(application, request, **kwargs)