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

quic: moving helpers to be shared by connection pool #15444

Merged
merged 5 commits into from
Mar 15, 2021

Conversation

alyssawilk
Copy link
Contributor

This fixes a TODO and also the tsan issues triggered with the last merge.

Risk Level: n/a (quic upstream only)
Testing: integration tests
Docs Changes: n/a
Release Notes: n/a

Signed-off-by: Alyssa Wilk <[email protected]>
danzh2010
danzh2010 previously approved these changes Mar 11, 2021
Copy link
Contributor

@danzh2010 danzh2010 left a comment

Choose a reason for hiding this comment

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

Thanks for fixing the test! LGTM other than a request for mroe documentation.

virtual std::unique_ptr<Network::ClientConnection>
createQuicNetworkConnection(Network::Address::InstanceConstSharedPtr server_addr,
Network::Address::InstanceConstSharedPtr local_addr,
// Allows thread-local creation of PersistentQuicInfo.
Copy link
Contributor

Choose a reason for hiding this comment

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

I can understand this object is per-conn pool. But is it thread-local?
Plz add comment how to use these interfaces to create a client connection.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

connection pools must be thread local (they're not thread safe). will comment :-)

Signed-off-by: Alyssa Wilk <[email protected]>
mattklein123
mattklein123 previously approved these changes Mar 11, 2021
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.

LGTM!

Network::TransportSocketFactory& transport_socket_factory = host->transportSocketFactory();
quic_info_ =
Config::Utility::getAndCheckFactoryByName<Http::QuicClientConnectionFactory>(
Http::QuicCodecNames::get().Quiche)
Copy link
Member

Choose a reason for hiding this comment

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

example of cross dependency issue that we were discussing in the slack thread (so yeah, I think I'm firmly in the no extension camp now!)

Signed-off-by: Alyssa Wilk <[email protected]>
@alyssawilk alyssawilk merged commit af17302 into envoyproxy:main Mar 15, 2021
@alyssawilk alyssawilk deleted the quic_mem branch July 15, 2021 19:32
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