Skip to content
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

http: removing the http1 and http2 connection pools #13967

Merged
merged 3 commits into from
Nov 11, 2020

Conversation

alyssawilk
Copy link
Contributor

This is a refactor to make #13922 safe long term.

Basically the HTTP/1 and HTTP/2 logic used to be split between the ActiveClient, and the ConnectionPool classes.
Prior refactors moved all the logic from the pool to the client, so that the new MixedConnectionPool could have HTTP/1 or HTTP/2 clients, with all the logic contained in the ActiveClient. This does away with the pool classes entirely, so folks don't add any logic back.

This could go one of two ways. We can keep the FixedConnectionPool and MixedConnectionPool long term, or we can have a single merged pool with if (alpn) {alpn_logic} else {fixed_logic}. I don't have strong feelings, but felt the split was a bit cleaner.

Risk Level: Medium
Testing: n/a (pure refactor)
Docs Changes: n/a
Release Notes: n/a
Part of #3431

Signed-off-by: Alyssa Wilk <alyssar@chromium.org>
@alyssawilk
Copy link
Contributor Author

cc @snowp and @mattklein123 (it's the last conn pool refactor, I swear! :-P )

Signed-off-by: Alyssa Wilk <alyssar@chromium.org>
@yanavlasov yanavlasov self-assigned this Nov 10, 2020
@mattklein123 mattklein123 self-assigned this Nov 10, 2020
Copy link
Member

@mattklein123 mattklein123 left a comment

Choose a reason for hiding this comment

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

Nice, just a small nit.

/wait

Comment on lines 157 to 158
CreateCodecFn codec_fn_;
CreateClientFn client_fn_;
Copy link
Member

Choose a reason for hiding this comment

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

nit: const

Signed-off-by: Alyssa Wilk <alyssar@chromium.org>
@mattklein123
Copy link
Member

/retest

@repokitteh-read-only
Copy link

Retrying Azure Pipelines:
Retried failed jobs in: envoy-presubmit

🐱

Caused by: a #13967 (comment) was created by @mattklein123.

see: more, trace.

@mattklein123 mattklein123 merged commit da32392 into envoyproxy:master Nov 11, 2020
@alyssawilk alyssawilk deleted the all_changes branch June 10, 2021 13:43
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.

None yet

3 participants