Skip to content

Commit

Permalink
ab: Ignore the delay if it's larger than the timeout.
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910862 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
ylavic committed Jul 7, 2023
1 parent a9b1f10 commit 661e50c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion support/ab.c
Original file line number Diff line number Diff line change
Expand Up @@ -2457,7 +2457,9 @@ static void worker_test(struct worker *worker)
start_connection(c);
}
else {
t = c->delay - now;
if (t > c->delay - now) {
t = c->delay - now;
}
break;
}
} while (!APR_RING_EMPTY(&worker->delayed_ring, connection, delay_list));
Expand Down

0 comments on commit 661e50c

Please sign in to comment.