From 99668977a6a3912f3634d410462a650deadecba5 Mon Sep 17 00:00:00 2001 From: Kazuho Oku Date: Tue, 5 Mar 2024 16:54:33 +0900 Subject: [PATCH] when -i (request interval) option is set, reset `num_resp_received` so that the next repetition would be scheduled when receiving response for all the specified paths --- src/cli.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cli.c b/src/cli.c index 373516dd..0d803e9c 100644 --- a/src/cli.c +++ b/src/cli.c @@ -374,6 +374,7 @@ static void client_on_receive(quicly_stream_t *stream, size_t off, const void *s if (reqs[num_resp_received].path == NULL) { if (request_interval != 0) { enqueue_requests_at = ctx.now->cb(ctx.now) + request_interval; + num_resp_received = 0; } else { dump_stats(stderr, stream->conn); quicly_close(stream->conn, 0, "");