]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
ab: Ignore the delay if it's larger than the timeout.
authorYann Ylavic <ylavic@apache.org>
Fri, 7 Jul 2023 15:57:32 +0000 (15:57 +0000)
committerYann Ylavic <ylavic@apache.org>
Fri, 7 Jul 2023 15:57:32 +0000 (15:57 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910862 13f79535-47bb-0310-9956-ffa450edef68

support/ab.c

index a0b0c5ac3ec48328a60dc4888929695b56143196..9e2853a5f061d97892b1919e02b2210d68246cee 100644 (file)
@@ -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));