MINOR: servers: Add a back-pointer to the server in srv_per_thread

In struct srv_per_thread, add a pointer to the server, as with just a
pointer to srv_per_thread, we can't figure out the related server.
This commit is contained in:
Olivier Houchard 2026-05-28 15:21:13 +02:00 committed by Olivier Houchard
parent a4520229a7
commit 6f8dab2583
2 changed files with 2 additions and 0 deletions

View file

@ -279,6 +279,7 @@ struct srv_per_thread {
struct ceb_root *idle_conns; /* Shareable idle connections */
struct ceb_root *safe_conns; /* Safe idle connections */
struct ceb_root *avail_conns; /* Connections in use, but with still new streams available */
struct server *srv; /* Back-pointer to the server */
#ifdef USE_QUIC
struct ist quic_retry_token;
#endif

View file

@ -6128,6 +6128,7 @@ static int srv_init_per_thr(struct server *srv)
srv->per_thr[i].idle_conns = NULL;
srv->per_thr[i].safe_conns = NULL;
srv->per_thr[i].avail_conns = NULL;
srv->per_thr[i].srv = srv;
MT_LIST_INIT(&srv->per_thr[i].sess_conns);
MT_LIST_INIT(&srv->per_thr[i].streams);