From: Olivier Houchard Date: Thu, 17 Apr 2025 15:05:07 +0000 (+0200) Subject: MINOR: proxies: Initialize the per-thread structure earlier. X-Git-Tag: v3.2-dev11~7 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=5e1ce09e54bd3e585d1d116d75578440c5e1cbb6;p=thirdparty%2Fhaproxy.git MINOR: proxies: Initialize the per-thread structure earlier. Move the call to initialize the proxy's per-thread structure earlier than currently done, so that they are usable when we're initializing the load balancers. --- diff --git a/src/cfgparse.c b/src/cfgparse.c index d1c850cdc..9c567d936 100644 --- a/src/cfgparse.c +++ b/src/cfgparse.c @@ -2826,6 +2826,7 @@ init_proxies_list_stage1: struct logger *tmplogger; unsigned int next_id; + proxy_init_per_thr(curproxy); if (!(curproxy->cap & PR_CAP_INT) && curproxy->uuid < 0) { /* proxy ID not set, use automatic numbering with first * spare entry starting with next_pxid. We don't assign @@ -4202,7 +4203,6 @@ init_proxies_list_stage2: struct listener *listener; unsigned int next_id; - proxy_init_per_thr(curproxy); /* Configure SSL for each bind line. * Note: if configuration fails at some point, the ->ctx member * remains NULL so that listeners can later detach.