Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nghttp2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
nghttp2
Commits
385abf10
Commit
385abf10
authored
3 years ago
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nghttpx: Add support QUIC BBR2
parent
f3206b12
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
5 deletions
+14
-5
src/shrpx.cc
src/shrpx.cc
+6
-3
src/shrpx_config.cc
src/shrpx_config.cc
+3
-1
src/shrpx_http3_upstream.cc
src/shrpx_http3_upstream.cc
+5
-1
No files found.
src/shrpx.cc
View file @
385abf10
...
...
@@ -3369,12 +3369,15 @@ HTTP/3 and QUIC:
NEW_TOKEN frame in the previous connection.
--frontend-quic-congestion-controller=<CC>
Specify a congestion controller algorithm for a frontend
QUIC
connection. <CC> should be either "cubic" or
"bbr
".
QUIC
connection. <CC> should be one of "cubic", "bbr",
and "bbr2
".
Default: )"
<<
(
config
->
quic
.
upstream
.
congestion_controller
==
NGTCP2_CC_ALGO_CUBIC
?
"cubic"
:
"bbr"
)
:
(
config
->
quic
.
upstream
.
congestion_controller
==
NGTCP2_CC_ALGO_BBR
?
"bbr"
:
"bbr2"
))
<<
R"(
--frontend-quic-secret-file=<PATH>
Path to file that contains secure random data to be used
...
...
This diff is collapsed.
Click to expand it.
src/shrpx_config.cc
View file @
385abf10
...
...
@@ -4111,8 +4111,10 @@ int parse_config(Config *config, int optid, const StringRef &opt,
config
->
quic
.
upstream
.
congestion_controller
=
NGTCP2_CC_ALGO_CUBIC
;
}
else
if
(
util
::
strieq_l
(
"bbr"
,
optarg
))
{
config
->
quic
.
upstream
.
congestion_controller
=
NGTCP2_CC_ALGO_BBR
;
}
else
if
(
util
::
strieq_l
(
"bbr2"
,
optarg
))
{
config
->
quic
.
upstream
.
congestion_controller
=
NGTCP2_CC_ALGO_BBR2
;
}
else
{
LOG
(
ERROR
)
<<
opt
<<
": must be
either cubic or bbr
"
;
LOG
(
ERROR
)
<<
opt
<<
": must be
one of cubic, bbr, and bbr2
"
;
return
-
1
;
}
#endif // ENABLE_HTTP3
...
...
This diff is collapsed.
Click to expand it.
src/shrpx_http3_upstream.cc
View file @
385abf10
...
...
@@ -745,7 +745,11 @@ int Http3Upstream::write_streams() {
auto
config
=
get_config
();
auto
&
quicconf
=
config
->
quic
;
if
(
quicconf
.
upstream
.
congestion_controller
!=
NGTCP2_CC_ALGO_BBR
)
{
switch
(
quicconf
.
upstream
.
congestion_controller
)
{
case
NGTCP2_CC_ALGO_BBR
:
case
NGTCP2_CC_ALGO_BBR2
:
break
;
default:
max_pktcnt
=
std
::
min
(
max_pktcnt
,
static_cast
<
size_t
>
(
10
));
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment