From 9ca34e48b355118e4c2bc302eadea48ef535e5e0 Mon Sep 17 00:00:00 2001 From: Frederic Lecaille Date: Mon, 22 Jun 2026 17:59:54 +0200 Subject: [PATCH] fix: wrong stats display with connection errors --- src/haload.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/haload.c b/src/haload.c index f95bceefa..b63629651 100644 --- a/src/haload.c +++ b/src/haload.c @@ -1273,14 +1273,6 @@ struct task *hld_strm_task(struct task *t, void *context, unsigned int state) goto leave; err: TRACE_DEVEL("leaving on error", HLD_STRM_EV_TASK, hs); - - if (url->tot_req > 1 || !arg_accu) { - uint64_t ttfb; // time-to-first-byte - ttfb = tv_us(tv_diff(&hs->req_date, &date)); - thrs_info[tid].tot_fbs++; - thrs_info[tid].tot_ttfb += ttfb; - } - thrs_info[tid].tot_perr++; url->mreqs++; if (arg_rcon > 0) {