diff options
author | Yann Ylavic <ylavic@apache.org> | 2023-07-07 17:57:32 +0200 |
---|---|---|
committer | Yann Ylavic <ylavic@apache.org> | 2023-07-07 17:57:32 +0200 |
commit | 661e50cf2247d8ea0e08541222dde1c6bccac6cf (patch) | |
tree | d8d1a1d2bfbffcfc435c72f8f470829d881a3ee6 /support | |
parent | ab: Fix accounting of started connections. (diff) | |
download | apache2-661e50cf2247d8ea0e08541222dde1c6bccac6cf.tar.xz apache2-661e50cf2247d8ea0e08541222dde1c6bccac6cf.zip |
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
Diffstat (limited to 'support')
-rw-r--r-- | support/ab.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/support/ab.c b/support/ab.c index a0b0c5ac3e..9e2853a5f0 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)); |