mirror of
				https://github.com/avatao-content/baseimage-tutorial-framework
				synced 2025-11-04 02:42:56 +00:00 
			
		
		
		
	Set ZMQ HWM in EventHandlerConnector to infinite
This commit is contained in:
		@@ -16,6 +16,7 @@ class EventHandlerDownlinkConnector(ZMQConnectorBase):
 | 
			
		||||
    def __init__(self, zmq_context=None):
 | 
			
		||||
        super(EventHandlerDownlinkConnector, self).__init__(zmq_context)
 | 
			
		||||
        self._zmq_pull_socket = self._zmq_context.socket(zmq.PULL)
 | 
			
		||||
        self._zmq_pull_socket.setsockopt(zmq.RCVHWM, 0)
 | 
			
		||||
        self._zmq_pull_stream = ZMQStream(self._zmq_pull_socket)
 | 
			
		||||
        address = f'tcp://*:{TFWENV.RECEIVER_PORT}'
 | 
			
		||||
        self._zmq_pull_socket.bind(address)
 | 
			
		||||
@@ -30,6 +31,7 @@ class EventHandlerUplinkConnector(ZMQConnectorBase):
 | 
			
		||||
    def __init__(self, zmq_context=None):
 | 
			
		||||
        super(EventHandlerUplinkConnector, self).__init__(zmq_context)
 | 
			
		||||
        self._zmq_pub_socket = self._zmq_context.socket(zmq.PUB)
 | 
			
		||||
        self._zmq_pub_socket.setsockopt(zmq.SNDHWM, 0)
 | 
			
		||||
        address = f'tcp://*:{TFWENV.PUBLISHER_PORT}'
 | 
			
		||||
        self._zmq_pub_socket.bind(address)
 | 
			
		||||
        LOG.debug('Pub socket bound to %s', address)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user