From 5e82b94b07ebb78055ad070501b3b11d89e42108 Mon Sep 17 00:00:00 2001 From: Yann Ylavic Date: Tue, 20 Jun 2023 15:11:25 +0000 Subject: ab: Don't (doubly) count errors as err_length if not actually reading. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910514 13f79535-47bb-0310-9956-ffa450edef68 --- support/ab.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'support') diff --git a/support/ab.c b/support/ab.c index 392a14e6d1..7579052ed2 100644 --- a/support/ab.c +++ b/support/ab.c @@ -1810,7 +1810,8 @@ static void finalize_connection(struct connection *c, int reuse) worker->metrics.good++; } else { - if (!nolength && c->bread != worker->metrics.doclen) { + if (c->state >= STATE_READ + && !nolength && c->bread != worker->metrics.doclen) { worker->metrics.err_length++; } worker->metrics.bad++; -- cgit v1.2.3