Skip to content

Commit 1ad74d6

Browse files
committed
OPTIM: mux-fcgi: Reorganise fcgi_conn structure to fill some holes
<drl> field was moved before <dsi> and term_evts_log was moved before the demux buffer. 8 bytes was saved this way.
1 parent 5985276 commit 1ad74d6

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/mux_fcgi.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,13 @@ struct fcgi_conn {
5353
uint32_t streams_limit; /* maximum number of concurrent streams the peer supports */
5454
uint32_t flags; /* Connection flags: FCGI_CF_* */
5555

56-
int16_t dsi; /* dmux stream ID (<0 = idle ) */
5756
uint32_t drl; /* demux record length (if dsi >= 0) */
57+
int16_t dsi; /* dmux stream ID (<0 = idle ) */
5858
uint8_t drt; /* demux record type (if dsi >= 0) */
5959
uint8_t drp; /* demux record padding (if dsi >= 0) */
6060

61+
uint32_t term_evts_log; /* Termination events log: first 4 events reported */
62+
6163
struct buffer dbuf; /* demux buffer */
6264
struct buffer mbuf[FCGI_C_MBUF_CNT]; /* mux buffers (ring) */
6365

@@ -68,8 +70,6 @@ struct fcgi_conn {
6870
unsigned int nb_reserved; /* number of reserved streams */
6971
unsigned int stream_cnt; /* total number of streams seen */
7072

71-
uint32_t term_evts_log; /* Termination events log: first 4 events reported */
72-
7373
struct proxy *proxy; /* the proxy this connection was created for */
7474
struct fcgi_app *app; /* FCGI application used by this mux */
7575
struct task *task; /* timeout management task */

0 commit comments

Comments
 (0)