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
2afad0c6
Commit
2afad0c6
authored
Sep 04, 2021
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nghttpx: Use ngtcp2_conn_get_client_initial_dcid
parent
fb53a6a6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
src/shrpx_http3_upstream.cc
src/shrpx_http3_upstream.cc
+3
-4
src/shrpx_http3_upstream.h
src/shrpx_http3_upstream.h
+0
-1
No files found.
src/shrpx_http3_upstream.cc
View file @
2afad0c6
...
...
@@ -149,7 +149,8 @@ Http3Upstream::~Http3Upstream() {
auto
worker
=
handler_
->
get_worker
();
auto
quic_client_handler
=
worker
->
get_quic_connection_handler
();
quic_client_handler
->
remove_connection_id
(
&
initial_client_dcid_
);
quic_client_handler
->
remove_connection_id
(
ngtcp2_conn_get_client_initial_dcid
(
conn_
));
std
::
vector
<
ngtcp2_cid
>
scids
(
ngtcp2_conn_get_num_scid
(
conn_
));
ngtcp2_conn_get_scid
(
conn_
,
scids
.
data
());
...
...
@@ -516,8 +517,6 @@ int Http3Upstream::init(const UpstreamAddr *faddr, const Address &remote_addr,
shrpx
::
stream_stop_sending
,
};
initial_client_dcid_
=
initial_hd
.
dcid
;
ngtcp2_cid
scid
;
if
(
generate_quic_connection_id
(
&
scid
,
SHRPX_QUIC_SCIDLEN
,
...
...
@@ -592,7 +591,7 @@ int Http3Upstream::init(const UpstreamAddr *faddr, const Address &remote_addr,
auto
quic_connection_handler
=
worker
->
get_quic_connection_handler
();
quic_connection_handler
->
add_connection_id
(
&
initial_
client_dcid_
,
handler_
);
quic_connection_handler
->
add_connection_id
(
&
initial_
hd
.
dcid
,
handler_
);
quic_connection_handler
->
add_connection_id
(
&
scid
,
handler_
);
return
0
;
...
...
src/shrpx_http3_upstream.h
View file @
2afad0c6
...
...
@@ -154,7 +154,6 @@ private:
ev_timer
idle_timer_
;
ev_timer
shutdown_timer_
;
ev_prepare
prep_
;
ngtcp2_cid
initial_client_dcid_
;
ngtcp2_conn
*
conn_
;
quic
::
Error
last_error_
;
uint8_t
tls_alert_
;
...
...
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