Exemple #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)
Exemple #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)
Exemple #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)