From: Frederic Lecaille Date: Thu, 20 Aug 2026 13:38:36 +0000 (+0200) Subject: BUG/MINOR: haload: make -e react to request timeouts too X-Git-Tag: v3.5-dev6~86 X-Git-Url: https://git.kaiwu.me/?a=commitdiff_plain;h=852b4defdcec1b54732573020e3a721b32119c74;p=haproxy.git BUG/MINOR: haload: make -e react to request timeouts too -e only triggered on connection/protocol errors, not on requests that silently timed out waiting for a response. Now that timeouts are correctly counted as errors (previous commit), make them trigger -e the same way any other error does. --- diff --git a/src/haload.c b/src/haload.c index 3f06a7041..ef3210002 100644 --- a/src/haload.c +++ b/src/haload.c @@ -1625,6 +1625,11 @@ static struct task *hld_usr_task(struct task *t, void *context, unsigned int sta usr->nreqs = usr->nreqs == -1 ? -1 : usr->nreqs + 1; LIST_DELETE(&hs->list); hldstream_free(&hs); + + if (arg_serr == 1) { + usr->flags |= HLD_USR_FL_STOP; + HA_ATOMIC_STORE(&all_usr_stop_asap, 1); + } } if ((usr->flags & HLD_USR_FL_STOP) || HA_ATOMIC_LOAD(&all_usr_stop_asap)) {