]> git.kaiwu.me - haproxy.git/commitdiff
fix: wrong stats display with connection errors
authorFrederic Lecaille <flecaille@haproxy.com>
Mon, 22 Jun 2026 15:59:54 +0000 (17:59 +0200)
committerFrederic Lecaille <flecaille@haproxy.com>
Mon, 22 Jun 2026 15:59:54 +0000 (17:59 +0200)
src/haload.c

index f95bceefacadf38b939034ef53f91e5de9d780a2..b63629651c3558c951826ab7a58e79f2e0a3197c 100644 (file)
@@ -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) {