Skip to content

http3: applied cluster buffer limits to http/3 - #16466

Merged
alyssawilk merged 16 commits into
envoyproxy:mainfrom
alyssawilk:config
May 25, 2021
Merged

alyssawilk merged 16 commits into
envoyproxy:mainfrom
alyssawilk:config

Conversation

@alyssawilk

Copy link
Copy Markdown
Contributor

Risk Level: Low (http/3 only)
Testing: existing flow control tests pass
Docs Changes: n/a
Release Notes: n/a

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_);

Copy link
Copy Markdown
Contributor

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?

@danzh2010 danzh2010 left a comment

Copy link
Copy Markdown
Contributor

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]>

namespace {
// TODO(alyssawilk, danzh2010): This is mutable static info that is required for the QUICHE code.

Copy link
Copy Markdown
Contributor

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]>
@alyssawilk

Copy link
Copy Markdown
Contributor Author

@snowp mind doing !googler pass?

@snowp snowp left a comment

Copy link
Copy Markdown
Contributor

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>;

Copy link
Copy Markdown
Contributor

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]>
@alyssawilk

Copy link
Copy Markdown
Contributor Author

Done. Any other requests?

danzh2010
danzh2010 previously approved these changes May 19, 2021

@danzh2010 danzh2010 left a comment

Copy link
Copy Markdown
Contributor

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) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@snowp

snowp commented May 20, 2021

Copy link
Copy Markdown
Contributor

Needs main merge + CI fix, code LG

Signed-off-by: Alyssa Wilk <[email protected]>
Signed-off-by: Alyssa Wilk <[email protected]>
Comment on lines 15 to 18
EnvoyQuicProofVerifier(Envoy::Ssl::ClientContextSharedPtr&& context)
: context_(std::move(context)) {}
: context_(std::move(context)) {
ASSERT(context_.get());
}

Copy link
Copy Markdown
Contributor

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

Copy link
Copy Markdown
Contributor Author

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

Copy link
Copy Markdown
Contributor

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!

snowp
snowp previously approved these changes May 24, 2021
@alyssawilk
alyssawilk merged commit 13f37b8 into envoyproxy:main May 25, 2021
leyao-daily pushed a commit to leyao-daily/envoy that referenced this pull request Sep 30, 2021
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants