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
daad34ab
Commit
daad34ab
authored
Jun 15, 2019
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quic: Configure settings with options
parent
1bd57360
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
+9
-6
src/h2load_http3_session.cc
src/h2load_http3_session.cc
+3
-1
src/h2load_quic.cc
src/h2load_quic.cc
+6
-5
No files found.
src/h2load_http3_session.cc
View file @
daad34ab
...
@@ -271,9 +271,11 @@ int Http3Session::init_conn() {
...
@@ -271,9 +271,11 @@ int Http3Session::init_conn() {
nullptr
,
// push_stream,
nullptr
,
// push_stream,
};
};
auto
config
=
client_
->
worker
->
config
;
nghttp3_conn_settings
settings
;
nghttp3_conn_settings
settings
;
nghttp3_conn_settings_default
(
&
settings
);
nghttp3_conn_settings_default
(
&
settings
);
settings
.
qpack_max_table_capacity
=
4096
;
settings
.
qpack_max_table_capacity
=
config
->
header_table_size
;
settings
.
qpack_blocked_streams
=
100
;
settings
.
qpack_blocked_streams
=
100
;
auto
mem
=
nghttp3_mem_default
();
auto
mem
=
nghttp3_mem_default
();
...
...
src/h2load_quic.cc
View file @
daad34ab
...
@@ -569,16 +569,17 @@ int Client::quic_init(const sockaddr *local_addr, socklen_t local_addrlen,
...
@@ -569,16 +569,17 @@ int Client::quic_init(const sockaddr *local_addr, socklen_t local_addrlen,
generate_cid
(
scid
);
generate_cid
(
scid
);
generate_cid
(
dcid
);
generate_cid
(
dcid
);
auto
config
=
worker
->
config
;
ngtcp2_settings
settings
;
ngtcp2_settings
settings
;
ngtcp2_settings_default
(
&
settings
);
ngtcp2_settings_default
(
&
settings
);
settings
.
log_printf
=
debug_log_printf
;
settings
.
log_printf
=
debug_log_printf
;
settings
.
log_printf
=
nullptr
;
settings
.
log_printf
=
nullptr
;
settings
.
initial_ts
=
timestamp
(
worker
->
loop
);
settings
.
initial_ts
=
timestamp
(
worker
->
loop
);
settings
.
max_stream_data_bidi_local
=
256
_k
;
settings
.
max_stream_data_bidi_local
=
(
1
<<
config
->
window_bits
)
-
1
;
settings
.
max_stream_data_bidi_remote
=
256
_k
;
settings
.
max_stream_data_uni
=
(
1
<<
config
->
window_bits
)
-
1
;
settings
.
max_stream_data_uni
=
256
_k
;
settings
.
max_data
=
(
1
<<
config
->
connection_window_bits
)
-
1
;
settings
.
max_data
=
1
_m
;
settings
.
max_streams_bidi
=
0
;
settings
.
max_streams_bidi
=
1
;
settings
.
max_streams_uni
=
100
;
settings
.
max_streams_uni
=
100
;
settings
.
idle_timeout
=
30
*
NGTCP2_SECONDS
;
settings
.
idle_timeout
=
30
*
NGTCP2_SECONDS
;
...
...
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