Oops, this is the correct max-queue-size code