You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by yl...@apache.org on 2023/07/07 15:57:33 UTC

svn commit: r1910862 - /httpd/httpd/trunk/support/ab.c

Author: ylavic
Date: Fri Jul  7 15:57:32 2023
New Revision: 1910862

URL: http://svn.apache.org/viewvc?rev=1910862&view=rev
Log:
ab: Ignore the delay if it's larger than the timeout.


Modified:
    httpd/httpd/trunk/support/ab.c

Modified: httpd/httpd/trunk/support/ab.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/support/ab.c?rev=1910862&r1=1910861&r2=1910862&view=diff
==============================================================================
--- httpd/httpd/trunk/support/ab.c (original)
+++ httpd/httpd/trunk/support/ab.c Fri Jul  7 15:57:32 2023
@@ -2457,7 +2457,9 @@ static void worker_test(struct worker *w
                     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));