-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Conversation
Signed-off-by: Alyssa Wilk <[email protected]>
Signed-off-by: Alyssa Wilk <[email protected]>
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.
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. |
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.
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.
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.
connection pools must be thread local (they're not thread safe). will comment :-)
Signed-off-by: Alyssa Wilk <[email protected]>
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!
Network::TransportSocketFactory& transport_socket_factory = host->transportSocketFactory(); | ||
quic_info_ = | ||
Config::Utility::getAndCheckFactoryByName<Http::QuicClientConnectionFactory>( | ||
Http::QuicCodecNames::get().Quiche) |
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.
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]>
Signed-off-by: Alyssa Wilk <[email protected]>
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