Limit the queue size when disconnected