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
d64488d9
Commit
d64488d9
authored
Jun 29, 2019
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Handle Retry
parent
daad34ab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletion
+16
-1
src/h2load_quic.cc
src/h2load_quic.cc
+16
-1
No files found.
src/h2load_quic.cc
View file @
d64488d9
...
...
@@ -107,6 +107,21 @@ int Client::quic_handshake_completed() {
return
connection_made
();
}
namespace
{
int
recv_retry
(
ngtcp2_conn
*
conn
,
const
ngtcp2_pkt_hd
*
hd
,
const
ngtcp2_pkt_retry
*
retry
,
void
*
user_data
)
{
// Re-generate handshake secrets here because connection ID might
// change.
auto
c
=
static_cast
<
Client
*>
(
user_data
);
if
(
c
->
quic_setup_initial_crypto
()
!=
0
)
{
return
NGTCP2_ERR_CALLBACK_FAILURE
;
}
return
0
;
}
}
// namespace
namespace
{
ssize_t
in_encrypt
(
ngtcp2_conn
*
conn
,
uint8_t
*
dest
,
size_t
destlen
,
const
uint8_t
*
plaintext
,
size_t
plaintextlen
,
...
...
@@ -550,7 +565,7 @@ int Client::quic_init(const sockaddr *local_addr, socklen_t local_addrlen,
nullptr
,
// stream_open
h2load
::
stream_close
,
nullptr
,
// recv_stateless_reset
nullptr
,
// recv_retry
h2load
::
recv_retry
,
h2load
::
extend_max_local_streams_bidi
,
nullptr
,
// extend_max_local_streams_uni
nullptr
,
// rand
...
...
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