mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-11-22 19:21:31 +00:00
Fix socket bind order regarding ZMQStream
This commit is contained in:
parent
30223fe99f
commit
78c3a8cf98
@ -12,8 +12,8 @@ class ZMQDownlinkListener:
|
|||||||
def __init__(self, bind_addr):
|
def __init__(self, bind_addr):
|
||||||
self._zmq_pull_socket = zmq.Context.instance().socket(zmq.PULL)
|
self._zmq_pull_socket = zmq.Context.instance().socket(zmq.PULL)
|
||||||
self._zmq_pull_socket.setsockopt(zmq.RCVHWM, 0)
|
self._zmq_pull_socket.setsockopt(zmq.RCVHWM, 0)
|
||||||
self._zmq_pull_stream = ZMQStream(self._zmq_pull_socket)
|
|
||||||
self._zmq_pull_socket.bind(bind_addr)
|
self._zmq_pull_socket.bind(bind_addr)
|
||||||
|
self._zmq_pull_stream = ZMQStream(self._zmq_pull_socket)
|
||||||
LOG.debug('Pull socket bound to %s', bind_addr)
|
LOG.debug('Pull socket bound to %s', bind_addr)
|
||||||
|
|
||||||
def register_callback(self, callback):
|
def register_callback(self, callback):
|
||||||
|
Loading…
Reference in New Issue
Block a user