From: Yann Ylavic Date: Fri, 7 Jul 2023 15:57:32 +0000 (+0000) Subject: ab: Ignore the delay if it's larger than the timeout. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=661e50cf2247d8ea0e08541222dde1c6bccac6cf;p=thirdparty%2Fapache%2Fhttpd.git ab: Ignore the delay if it's larger than the timeout. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910862 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/support/ab.c b/support/ab.c index a0b0c5ac3ec..9e2853a5f06 100644 --- a/support/ab.c +++ b/support/ab.c @@ -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));