From: Christopher Faulet Date: Tue, 16 Jun 2026 11:39:26 +0000 (+0200) Subject: OPTIM: mux-fcgi: Reorganise fcgi_conn structure to fill some holes X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;ds=inline;p=thirdparty%2Fhaproxy.git OPTIM: mux-fcgi: Reorganise fcgi_conn structure to fill some holes field was moved before and term_evts_log was moved before the demux buffer. 8 bytes was saved this way. --- diff --git a/src/mux_fcgi.c b/src/mux_fcgi.c index 8d81ff849..d882a8288 100644 --- a/src/mux_fcgi.c +++ b/src/mux_fcgi.c @@ -53,11 +53,13 @@ struct fcgi_conn { uint32_t streams_limit; /* maximum number of concurrent streams the peer supports */ uint32_t flags; /* Connection flags: FCGI_CF_* */ - int16_t dsi; /* dmux stream ID (<0 = idle ) */ uint32_t drl; /* demux record length (if dsi >= 0) */ + int16_t dsi; /* dmux stream ID (<0 = idle ) */ uint8_t drt; /* demux record type (if dsi >= 0) */ uint8_t drp; /* demux record padding (if dsi >= 0) */ + uint32_t term_evts_log; /* Termination events log: first 4 events reported */ + struct buffer dbuf; /* demux buffer */ struct buffer mbuf[FCGI_C_MBUF_CNT]; /* mux buffers (ring) */ @@ -68,8 +70,6 @@ struct fcgi_conn { unsigned int nb_reserved; /* number of reserved streams */ unsigned int stream_cnt; /* total number of streams seen */ - uint32_t term_evts_log; /* Termination events log: first 4 events reported */ - struct proxy *proxy; /* the proxy this connection was created for */ struct fcgi_app *app; /* FCGI application used by this mux */ struct task *task; /* timeout management task */