Skip to content

Commit

Permalink
ab: Don't (doubly) count errors as err_length if not actually reading.
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910514 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
ylavic committed Jun 20, 2023
1 parent 2eb505f commit 5e82b94
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion support/ab.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++;
Expand Down

0 comments on commit 5e82b94

Please sign in to comment.