summaryrefslogtreecommitdiffstats
path: root/support/ab.c
diff options
context:
space:
mode:
Diffstat (limited to 'support/ab.c')
-rw-r--r--support/ab.c4
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));