-
Notifications
You must be signed in to change notification settings - Fork 5.3k
http3: applied cluster buffer limits to http/3 #16466
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
16 commits
Select commit
Hold shift + click to select a range
4f47a7f
http3: applied cluster buffer limits to http/3
alyssawilk 4d67310
format only, no tests
alyssawilk eb4b8cc
tests
alyssawilk 809b70e
Merge branch 'main' into config
alyssawilk 060eced
whitespace
alyssawilk 9564a9d
test cleanup
alyssawilk e618b0b
test
alyssawilk 0ed2bc9
buildifier
alyssawilk d530af6
test fix
alyssawilk 97ebb87
comment cleanup
alyssawilk 56a31b2
Merge branch 'main' into config
alyssawilk 7ca1e64
Merge branch 'main' into config
alyssawilk 4032998
fix bad merge
alyssawilk bafb1a8
16569 follow-up
alyssawilk 8ae8ffd
Merge branch 'main' into config
alyssawilk 4a2a3f8
Merge branch 'main' into config
alyssawilk 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -27,6 +27,10 @@ class QuicNetworkConnectionTest : public Event::TestUsingSimulatedTime, public t | |
| context_); | ||
| } | ||
|
|
||
| uint32_t highWatermark(EnvoyQuicClientSession* session) { | ||
| return session->write_buffer_watermark_simulation_.highWatermark(); | ||
| } | ||
|
|
||
| NiceMock<Event::MockDispatcher> dispatcher_; | ||
| std::shared_ptr<Upstream::MockClusterInfo> cluster_{new NiceMock<Upstream::MockClusterInfo>()}; | ||
| Upstream::HostSharedPtr host_{new NiceMock<Upstream::MockHost>}; | ||
|
|
@@ -41,7 +45,7 @@ class QuicNetworkConnectionTest : public Event::TestUsingSimulatedTime, public t | |
| TEST_F(QuicNetworkConnectionTest, BufferLimits) { | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nice! |
||
| initialize(); | ||
|
|
||
| PersistentQuicInfoImpl info{dispatcher_, *factory_, simTime(), test_address_}; | ||
| PersistentQuicInfoImpl info{dispatcher_, *factory_, simTime(), test_address_, 45}; | ||
|
|
||
| std::unique_ptr<Network::ClientConnection> client_connection = | ||
| createQuicNetworkConnection(info, dispatcher_, test_address_, test_address_); | ||
|
|
@@ -50,6 +54,7 @@ TEST_F(QuicNetworkConnectionTest, BufferLimits) { | |
| client_connection->connect(); | ||
| EXPECT_TRUE(client_connection->connecting()); | ||
| ASSERT(session != nullptr); | ||
| EXPECT_EQ(highWatermark(session), 45); | ||
| EXPECT_EQ(absl::nullopt, session->unixSocketPeerCredentials()); | ||
| EXPECT_EQ(absl::nullopt, session->lastRoundTripTime()); | ||
| client_connection->close(Network::ConnectionCloseType::NoFlush); | ||
|
|
||
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this change belong here? Not opposed to it, just seems unrelated to the main change in this PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it was a follow-up to a change requested in another PR.
I can split it into its own thing, but didn't think it was worth the CI cost :-P
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fine with me as long as we're aware that we're doing it!