Skip to content

Commit c2e6fdf

Browse files
committed
MINOR: quic: define global tune max-burst setting
1 parent 34868a3 commit c2e6fdf

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

include/haproxy/global-t.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ struct global {
201201
unsigned int quic_frontend_max_idle_timeout;
202202
unsigned int quic_frontend_glitches_threshold;
203203
unsigned int quic_frontend_max_streams_bidi;
204+
unsigned int quic_frontend_max_tx_burst;
204205
size_t quic_frontend_max_window_size;
205206
unsigned int quic_retry_threshold;
206207
unsigned int quic_reorder_ratio;

src/cfgparse-quic.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,8 @@ static int cfg_parse_quic_tune_setting(char **args, int section_type,
273273
global.tune.quic_frontend_glitches_threshold = arg;
274274
else if (strcmp(suffix, "frontend.max-streams-bidi") == 0)
275275
global.tune.quic_frontend_max_streams_bidi = arg;
276+
else if (strcmp(suffix, "frontend.max-tx-burst") == 0)
277+
global.tune.quic_frontend_max_tx_burst = arg;
276278
else if (strcmp(suffix, "frontend.max-window-size") == 0) {
277279
unsigned long cwnd;
278280
char *end_opt;
@@ -377,6 +379,7 @@ static struct cfg_kw_list cfg_kws = {ILH, {
377379
{ CFG_GLOBAL, "tune.quic.frontend.glitches-threshold", cfg_parse_quic_tune_setting },
378380
{ CFG_GLOBAL, "tune.quic.frontend.max-streams-bidi", cfg_parse_quic_tune_setting },
379381
{ CFG_GLOBAL, "tune.quic.frontend.max-idle-timeout", cfg_parse_quic_time },
382+
{ CFG_GLOBAL, "tune.quic.frontend.max-tx-burst", cfg_parse_quic_tune_setting },
380383
{ CFG_GLOBAL, "tune.quic.frontend.max-window-size", cfg_parse_quic_tune_setting },
381384
{ CFG_GLOBAL, "tune.quic.max-frame-loss", cfg_parse_quic_tune_setting },
382385
{ CFG_GLOBAL, "tune.quic.reorder-ratio", cfg_parse_quic_tune_setting },

src/haproxy.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ struct global global = {
204204
.quic_backend_max_idle_timeout = QUIC_TP_DFLT_BACK_MAX_IDLE_TIMEOUT,
205205
.quic_frontend_max_idle_timeout = QUIC_TP_DFLT_FRONT_MAX_IDLE_TIMEOUT,
206206
.quic_frontend_max_streams_bidi = QUIC_TP_DFLT_FRONT_MAX_STREAMS_BIDI,
207+
.quic_frontend_max_tx_burst = 0,
207208
.quic_frontend_max_window_size = QUIC_DFLT_MAX_WINDOW_SIZE,
208209
.quic_reorder_ratio = QUIC_DFLT_REORDER_RATIO,
209210
.quic_retry_threshold = QUIC_DFLT_RETRY_THRESHOLD,

0 commit comments

Comments
 (0)