Example #1
0
def set_zmq_internal_queue_size(socket: Socket, queue_size: int):
    # set both ZMQ_RCVHWM and ZMQ_SNDHWM
    socket.set_hwm(queue_size)
Example #2
0
def set_zmq_internal_queue_length(socket: Socket, config):
    # set both ZMQ_RCVHWM and ZMQ_SNDHWM
    socket.set_hwm(config.ZMQ_INTERNAL_QUEUE_SIZE)
Example #3
0
def set_zmq_internal_queue_size(socket: Socket, queue_size: int):
    # set both ZMQ_RCVHWM and ZMQ_SNDHWM
    socket.set_hwm(queue_size)