-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(s2n-quic-dc): Periodically re-handshake existing path secrets (#…
…2276) * Remove unused ongoing_handshakes field The correctness property referenced in the removed comment is/will be moved into s2n-quic itself via deduplicate flag on the connection attempts. Our goal is to ensure that the path secret in `peers` is the most recent path secret from the perspective of both the initiator (client) and acceptor (server) side. If handshakes to the same peer could overlap, then the server may see secrets from the same peer appear in a different order than the client. That situation would eventually lead to us being more likely to remove the wrong secret, since we incorrectly think it's been replaced. * Request handshakes after rehandshake_time elapses This avoids evicting state, but peers should be periodically re-handshaked to rotate the symmetric keys. We will request a handshakes starting at a random time and until there is a newer secret inserted, we will keep requesting a handshake roughly every minute (how often our background cleaning thread runs).
- Loading branch information
1 parent
d55d258
commit 2c95dd9
Showing
3 changed files
with
34 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters