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

upstream: set host on stream info for upstream filters #34332

Merged
merged 2 commits into from
May 31, 2024

Conversation

kyessenov
Copy link
Contributor

Change-Id: Ia868bb4d9cbf78de23bc43b6a162edcc065aa762

Commit Message: set host info on stream info for upstream filters. This is useful in upstream filters since the host is known.
Risk Level: low
Testing: regression

Change-Id: Ia868bb4d9cbf78de23bc43b6a162edcc065aa762
Signed-off-by: Kuat Yessenov <kuat@google.com>
Change-Id: I6629f024cad14ff503cc5a8be14b6a52ebd0a8c2
Signed-off-by: Kuat Yessenov <kuat@google.com>
@@ -572,6 +572,9 @@ Host::CreateConnectionData HostImplBase::createConnection(
connection->connectionInfoSetter().enableSettingInterfaceName(
cluster.setLocalInterfaceNameOnUpstreamConnections());
connection->setBufferLimits(cluster.perConnectionBufferLimitBytes());
if (auto upstream_info = connection->streamInfo().upstreamInfo(); upstream_info) {
Copy link
Contributor

Choose a reason for hiding this comment

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

In what cases does the streaminfo not have an upstreaminfo?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

When the socket errors out early in the code path. I'm not sure it was placed that way, but better be safe.

@ggreenway ggreenway merged commit 7fa92a2 into envoyproxy:main May 31, 2024
53 checks passed
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