Skip to content

Commit 65eda95

Browse files
committed
WIP: quic: Add "bbr" new "quic-cc-algo" option
1 parent 48d60cf commit 65eda95

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/cfgparse-quic.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
#define QUIC_CC_NEWRENO_STR "newreno"
2121
#define QUIC_CC_CUBIC_STR "cubic"
22+
#define QUIC_CC_BBR_STR "bbr"
2223
#define QUIC_CC_NO_CC_STR "nocc"
2324

2425
static int bind_parse_quic_force_retry(char **args, int cur_arg, struct proxy *px, struct bind_conf *conf, char **err)
@@ -95,6 +96,12 @@ static int bind_parse_quic_cc_algo(char **args, int cur_arg, struct proxy *px,
9596
cc_algo = &quic_cc_algo_cubic;
9697
arg += strlen(QUIC_CC_CUBIC_STR);
9798
}
99+
else if (strncmp(arg, QUIC_CC_BBR_STR, strlen(QUIC_CC_BBR_STR)) == 0) {
100+
/* bbr */
101+
algo = QUIC_CC_BBR_STR;
102+
cc_algo = &quic_cc_algo_bbr;
103+
arg += strlen(QUIC_CC_BBR_STR);
104+
}
98105
else if (strncmp(arg, QUIC_CC_NO_CC_STR, strlen(QUIC_CC_NO_CC_STR)) == 0) {
99106
/* nocc */
100107
if (!experimental_directives_allowed) {

0 commit comments

Comments
 (0)