-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
http3: applied cluster buffer limits to http/3 #16466
Conversation
Signed-off-by: Alyssa Wilk <[email protected]>
auto ret = std::make_unique<EnvoyQuicClientSession>( | ||
info_impl->quic_config_, info_impl->supported_versions_, std::move(connection), | ||
info_impl->server_id_, info_impl->crypto_config_.get(), &static_info.push_promise_index_, | ||
dispatcher, /*send_buffer_limit=*/0); | ||
dispatcher, info_impl->buffer_limit_); |
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.
Mind adding some conn_pool tests for this?
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.
Looks good overall along aside a request for testing.
Signed-off-by: Alyssa Wilk <[email protected]>
Signed-off-by: Alyssa Wilk <[email protected]>
quiche::FlagRegistry::getInstance(); | ||
} | ||
|
||
namespace { | ||
// TODO(alyssawilk, danzh2010): This is mutable static info that is required for the QUICHE code. | ||
|
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.
irrelevant?
Signed-off-by: Alyssa Wilk <[email protected]>
Signed-off-by: Alyssa Wilk <[email protected]>
@snowp mind doing !googler pass? |
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.
Just one comment, otherwise this LGTM
|
||
NiceMock<Event::MockDispatcher> dispatcher_; | ||
std::shared_ptr<Upstream::MockClusterInfo> cluster_{new NiceMock<Upstream::MockClusterInfo>()}; | ||
Upstream::MockHost* mock_host = new NiceMock<Upstream::MockHost>; |
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.
Naming convention seems off for this field. Maybe just combine this and host_ into one field and avoid the raw pointer?
Signed-off-by: Alyssa Wilk <[email protected]>
Signed-off-by: Alyssa Wilk <[email protected]>
Signed-off-by: Alyssa Wilk <[email protected]>
Signed-off-by: Alyssa Wilk <[email protected]>
Signed-off-by: Alyssa Wilk <[email protected]>
Done. Any other requests? |
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.
LGTM
} | ||
}; | ||
|
||
TEST_F(QuicNetworkConnectionTest, BufferLimits) { |
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.
Nice!
Signed-off-by: Alyssa Wilk <[email protected]>
Needs main merge + CI fix, code LG |
Signed-off-by: Alyssa Wilk <[email protected]>
Signed-off-by: Alyssa Wilk <[email protected]>
Signed-off-by: Alyssa Wilk <[email protected]>
Signed-off-by: Alyssa Wilk <[email protected]>
: context_(std::move(context)) {} | ||
: context_(std::move(context)) { | ||
ASSERT(context_.get()); | ||
} | ||
|
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!
Signed-off-by: Alyssa Wilk <[email protected]>
Risk Level: Low (http/3 only) Testing: existing flow control tests pass Docs Changes: n/a Release Notes: n/a Signed-off-by: Alyssa Wilk <[email protected]>
Risk Level: Low (http/3 only)
Testing: existing flow control tests pass
Docs Changes: n/a
Release Notes: n/a