Skip to content

Commit

Permalink
WIP: quic: Add "bbr" new "quic-cc-algo" option
Browse files Browse the repository at this point in the history
  • Loading branch information
haproxyFred committed Nov 15, 2024
1 parent 0c55838 commit f5fe62f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/cfgparse-quic.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

#define QUIC_CC_NEWRENO_STR "newreno"
#define QUIC_CC_CUBIC_STR "cubic"
#define QUIC_CC_BBR_STR "bbr"
#define QUIC_CC_NO_CC_STR "nocc"

static int bind_parse_quic_force_retry(char **args, int cur_arg, struct proxy *px, struct bind_conf *conf, char **err)
Expand Down Expand Up @@ -95,6 +96,12 @@ static int bind_parse_quic_cc_algo(char **args, int cur_arg, struct proxy *px,
cc_algo = &quic_cc_algo_cubic;
arg += strlen(QUIC_CC_CUBIC_STR);
}
else if (strncmp(arg, QUIC_CC_BBR_STR, strlen(QUIC_CC_BBR_STR)) == 0) {
/* bbr */
algo = QUIC_CC_BBR_STR;
cc_algo = &quic_cc_algo_bbr;
arg += strlen(QUIC_CC_BBR_STR);
}
else if (strncmp(arg, QUIC_CC_NO_CC_STR, strlen(QUIC_CC_NO_CC_STR)) == 0) {
/* nocc */
if (!experimental_directives_allowed) {
Expand Down

0 comments on commit f5fe62f

Please sign in to comment.