fix: wrong stats display with connection errors
Some checks are pending
Contrib / admin/halog/ (push) Waiting to run
Contrib / dev/flags/ (push) Waiting to run
Contrib / dev/haring/ (push) Waiting to run
Contrib / dev/hpack/ (push) Waiting to run
Contrib / dev/poll/ (push) Waiting to run
VTest / Generate Build Matrix (push) Waiting to run
VTest / (push) Blocked by required conditions
Windows / Windows, gcc, all features (push) Waiting to run

This commit is contained in:
Frederic Lecaille 2026-06-22 17:59:54 +02:00
parent faea9078a5
commit 9ca34e48b3

View 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) {