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
61aae5b9
Commit
61aae5b9
authored
Aug 17, 2021
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nghttpx: Add configuration to enable ngtcp2 logging (no cmd-line opt yet)
parent
028996af
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
src/shrpx_config.h
src/shrpx_config.h
+3
-0
src/shrpx_http3_upstream.cc
src/shrpx_http3_upstream.cc
+6
-4
No files found.
src/shrpx_config.h
View file @
61aae5b9
...
@@ -707,6 +707,9 @@ struct QUICConfig {
...
@@ -707,6 +707,9 @@ struct QUICConfig {
struct
{
struct
{
ev_tstamp
idle
;
ev_tstamp
idle
;
}
timeout
;
}
timeout
;
struct
{
bool
log
;
}
debug
;
}
;
}
;
// custom error page
// custom error page
...
...
src/shrpx_http3_upstream.cc
View file @
61aae5b9
...
@@ -451,9 +451,14 @@ int Http3Upstream::init(const UpstreamAddr *faddr, const Address &remote_addr,
...
@@ -451,9 +451,14 @@ int Http3Upstream::init(const UpstreamAddr *faddr, const Address &remote_addr,
return
-
1
;
return
-
1
;
}
}
auto
config
=
get_config
();
auto
&
quicconf
=
config
->
quic
;
ngtcp2_settings
settings
;
ngtcp2_settings
settings
;
ngtcp2_settings_default
(
&
settings
);
ngtcp2_settings_default
(
&
settings
);
settings
.
log_printf
=
log_printf
;
if
(
quicconf
.
debug
.
log
)
{
settings
.
log_printf
=
log_printf
;
}
settings
.
initial_ts
=
quic_timestamp
();
settings
.
initial_ts
=
quic_timestamp
();
settings
.
cc_algo
=
NGTCP2_CC_ALGO_BBR
;
settings
.
cc_algo
=
NGTCP2_CC_ALGO_BBR
;
settings
.
max_window
=
6
_m
;
settings
.
max_window
=
6
_m
;
...
@@ -461,9 +466,6 @@ int Http3Upstream::init(const UpstreamAddr *faddr, const Address &remote_addr,
...
@@ -461,9 +466,6 @@ int Http3Upstream::init(const UpstreamAddr *faddr, const Address &remote_addr,
settings
.
max_udp_payload_size
=
SHRPX_MAX_UDP_PAYLOAD_SIZE
;
settings
.
max_udp_payload_size
=
SHRPX_MAX_UDP_PAYLOAD_SIZE
;
settings
.
rand_ctx
.
native_handle
=
&
worker
->
get_randgen
();
settings
.
rand_ctx
.
native_handle
=
&
worker
->
get_randgen
();
auto
config
=
get_config
();
auto
&
quicconf
=
config
->
quic
;
ngtcp2_transport_params
params
;
ngtcp2_transport_params
params
;
ngtcp2_transport_params_default
(
&
params
);
ngtcp2_transport_params_default
(
&
params
);
params
.
initial_max_streams_bidi
=
100
;
params
.
initial_max_streams_bidi
=
100
;
...
...
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