Esempio n. 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)
Esempio n. 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)
Esempio n. 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)