From: Yann Ylavic Date: Tue, 20 Jun 2023 15:11:25 +0000 (+0000) Subject: ab: Don't (doubly) count errors as err_length if not actually reading. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5e82b94b07ebb78055ad070501b3b11d89e42108;p=thirdparty%2Fapache%2Fhttpd.git 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 --- diff --git a/support/ab.c b/support/ab.c index 392a14e6d17..7579052ed2a 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++;