diff options
| author | Folker Bernitt <fbernitt@thoughtworks.com> | 2015-10-21 10:07:06 +0200 | 
|---|---|---|
| committer | Kali Kaneko <kali@leap.se> | 2015-10-21 12:25:33 -0400 | 
| commit | 5af395a5662c63a09cc6db2bacbb495090488d78 (patch) | |
| tree | f0259553231c63899fc04edb2082a2e98b5adef6 /src | |
| parent | c105a8d3b016cc907a908de1a31b445b32b42ca9 (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.py | 6 | 
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') | 
