summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFolker Bernitt <fbernitt@thoughtworks.com>2015-10-21 10:07:06 +0200
committerKali Kaneko <kali@leap.se>2015-10-21 12:25:33 -0400
commit5af395a5662c63a09cc6db2bacbb495090488d78 (patch)
treef0259553231c63899fc04edb2082a2e98b5adef6 /src
parentc105a8d3b016cc907a908de1a31b445b32b42ca9 (diff)
Workaround for deadlock problem in zmq auth
- See https://leap.se/code/issues/7536 - Actual root cause not identified yet
Diffstat (limited to 'src')
-rw-r--r--src/leap/common/events/zmq_components.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/leap/common/events/zmq_components.py b/src/leap/common/events/zmq_components.py
index 729ca90..51de02c 100644
--- a/src/leap/common/events/zmq_components.py
+++ b/src/leap/common/events/zmq_components.py
@@ -25,6 +25,7 @@ import os
import logging
import txzmq
import re
+import time
from abc import ABCMeta
@@ -154,6 +155,11 @@ class TxZmqComponent(object):
:type socket: zmq.Socket
"""
authenticator = ThreadAuthenticator(self._factory.context)
+
+ # Temporary fix until we understand what the problem is
+ # See https://leap.se/code/issues/7536
+ time.sleep(0.5)
+
authenticator.start()
# XXX do not hardcode this here.
authenticator.allow('127.0.0.1')