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