Skip to content

Commit

Permalink
when -i (request interval) option is set, reset num_resp_received s…
Browse files Browse the repository at this point in the history
…o that the next repetition would be scheduled when receiving response for all the specified paths
  • Loading branch information
kazuho committed Mar 5, 2024
1 parent db5d54a commit 9966897
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/cli.c
Original file line number Diff line number Diff line change
Expand Up @@ -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, "");
Expand Down

0 comments on commit 9966897

Please sign in to comment.