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

transport_sockets: fixing alpn for wrapped sockets #19281

Merged
merged 3 commits into from
Dec 14, 2021

Conversation

alyssawilk
Copy link
Contributor

Creating a passthrough factory for consistent handling of wrapped characteristics for proxy_proto, tap, and tcp_stats socket factories.

Risk Level: low
Testing: new unit testing
Docs Changes: n/a
Release Notes: inline
Part of #19149

Copy link
Contributor

@ggreenway ggreenway left a comment

Choose a reason for hiding this comment

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

LGTM

public:
PassthroughFactory(Network::TransportSocketFactoryPtr&& transport_socket_factory)
: transport_socket_factory_(std::move(transport_socket_factory)) {
ASSERT(transport_socket_factory_.get());
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: ASSERT(transport_socket_factory_ != nullptr) is slightly clearer.

}

protected:
// The wrapped factory
Copy link
Contributor

Choose a reason for hiding this comment

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

end with period.

Signed-off-by: Alyssa Wilk <[email protected]>
ggreenway
ggreenway previously approved these changes Dec 14, 2021
Signed-off-by: Alyssa Wilk <[email protected]>
@alyssawilk alyssawilk merged commit 23d19b7 into envoyproxy:main Dec 14, 2021
joshperry pushed a commit to joshperry/envoy that referenced this pull request Feb 13, 2022
Creating a passthrough factory for consistent handling of wrapped characteristics for proxy_proto, tap, and tcp_stats socket factories.

Risk Level: low
Testing: new unit testing
Docs Changes: n/a
Release Notes: inline
Part of envoyproxy#19149

Signed-off-by: Alyssa Wilk <[email protected]>
Signed-off-by: Josh Perry <[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.

2 participants