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
51d4e419
Commit
51d4e419
authored
Sep 29, 2020
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cap --window-bits to 26 for QUIC
parent
3912e965
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
src/h2load.cc
src/h2load.cc
+1
-1
src/h2load_quic.cc
src/h2load_quic.cc
+1
-1
No files found.
src/h2load.cc
View file @
51d4e419
...
@@ -2033,7 +2033,7 @@ Options:
...
@@ -2033,7 +2033,7 @@ Options:
Default: 1
Default: 1
-w, --window-bits=<N>
-w, --window-bits=<N>
Sets the stream level initial window size to (2**<N>)-1.
Sets the stream level initial window size to (2**<N>)-1.
For QUIC, <N> is capped to 2
3 (roughly 8
MiB).
For QUIC, <N> is capped to 2
6 (roughly 64
MiB).
Default: )"
Default: )"
<<
config
.
window_bits
<<
R"(
<<
config
.
window_bits
<<
R"(
-W, --connection-window-bits=<N>
-W, --connection-window-bits=<N>
...
...
src/h2load_quic.cc
View file @
51d4e419
...
@@ -367,7 +367,7 @@ int Client::quic_init(const sockaddr *local_addr, socklen_t local_addrlen,
...
@@ -367,7 +367,7 @@ int Client::quic_init(const sockaddr *local_addr, socklen_t local_addrlen,
settings
.
initial_ts
=
timestamp
(
worker
->
loop
);
settings
.
initial_ts
=
timestamp
(
worker
->
loop
);
auto
&
params
=
settings
.
transport_params
;
auto
&
params
=
settings
.
transport_params
;
auto
max_stream_data
=
auto
max_stream_data
=
std
::
min
((
1
<<
2
3
)
-
1
,
(
1
<<
config
->
window_bits
)
-
1
);
std
::
min
((
1
<<
2
6
)
-
1
,
(
1
<<
config
->
window_bits
)
-
1
);
params
.
initial_max_stream_data_bidi_local
=
max_stream_data
;
params
.
initial_max_stream_data_bidi_local
=
max_stream_data
;
params
.
initial_max_stream_data_uni
=
max_stream_data
;
params
.
initial_max_stream_data_uni
=
max_stream_data
;
params
.
initial_max_data
=
(
1
<<
config
->
connection_window_bits
)
-
1
;
params
.
initial_max_data
=
(
1
<<
config
->
connection_window_bits
)
-
1
;
...
...
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