-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Update QUICHE from c2576eff3 to 3743c9285 #23073
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
6e57f13
Update QUICHE from c2576eff3 to 27bf7b273
RenjieTang 501f077
fix build
RenjieTang 3db4b4a
fix build and tests
RenjieTang faace44
Update QUICHE from 27bf7b273 to 3743c9285
RenjieTang 4a13a2d
fix a bazel build
RenjieTang d35c07c
Merge remote-tracking branch 'upstream/main' into merge-sep
RenjieTang 49cca0f
fix all tests
RenjieTang a6c2933
fix clang tidy
RenjieTang 8d49d13
simplify code
RenjieTang 849b80b
wrap QUIC with #ifdef
RenjieTang 7cf627a
modify coverage restriction
RenjieTang File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
29 changes: 29 additions & 0 deletions
29
source/common/quic/envoy_deterministic_connection_id_generator.cc
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| #include "source/common/quic/envoy_deterministic_connection_id_generator.h" | ||
|
|
||
| #include "source/common/quic/envoy_quic_utils.h" | ||
|
|
||
| namespace Envoy { | ||
| namespace Quic { | ||
|
|
||
| absl::optional<quic::QuicConnectionId> | ||
| EnvoyDeterministicConnectionIdGenerator::GenerateNextConnectionId( | ||
| const quic::QuicConnectionId& original) { | ||
| auto new_cid = DeterministicConnectionIdGenerator::GenerateNextConnectionId(original); | ||
| if (new_cid.has_value()) { | ||
| adjustNewConnectionIdForRoutine(new_cid.value(), original); | ||
| } | ||
| return new_cid; | ||
| } | ||
|
|
||
| absl::optional<quic::QuicConnectionId> | ||
| EnvoyDeterministicConnectionIdGenerator::MaybeReplaceConnectionId( | ||
| const quic::QuicConnectionId& original, const quic::ParsedQuicVersion& version) { | ||
| auto new_cid = DeterministicConnectionIdGenerator::MaybeReplaceConnectionId(original, version); | ||
| if (new_cid.has_value()) { | ||
| adjustNewConnectionIdForRoutine(new_cid.value(), original); | ||
| } | ||
| return new_cid; | ||
| } | ||
|
|
||
| } // namespace Quic | ||
| } // namespace Envoy | ||
25 changes: 25 additions & 0 deletions
25
source/common/quic/envoy_deterministic_connection_id_generator.h
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| #pragma once | ||
|
|
||
| #include "quiche/quic/core/deterministic_connection_id_generator.h" | ||
|
|
||
| namespace Envoy { | ||
| namespace Quic { | ||
|
|
||
| // This class modifies connection ids that are too long in an Envoy fashion. | ||
| class EnvoyDeterministicConnectionIdGenerator : public quic::DeterministicConnectionIdGenerator { | ||
|
|
||
| using DeterministicConnectionIdGenerator::DeterministicConnectionIdGenerator; | ||
|
|
||
| public: | ||
| // Hashes |original| to create a new connection ID in Envoy fashion. | ||
| absl::optional<quic::QuicConnectionId> | ||
| GenerateNextConnectionId(const quic::QuicConnectionId& original) override; | ||
| // Replace the connection ID if and only if |original| is not of the expected | ||
| // length in Envoy fashion. | ||
| absl::optional<quic::QuicConnectionId> | ||
| MaybeReplaceConnectionId(const quic::QuicConnectionId& original, | ||
| const quic::ParsedQuicVersion& version) override; | ||
| }; | ||
|
|
||
| } // namespace Quic | ||
| } // namespace Envoy |
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.