Skip to content

Commit

Permalink
harden
Browse files Browse the repository at this point in the history
Change-Id: I6629f024cad14ff503cc5a8be14b6a52ebd0a8c2
Signed-off-by: Kuat Yessenov <kuat@google.com>
  • Loading branch information
kyessenov committed May 23, 2024
1 parent a06e534 commit d9660a1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion source/common/upstream/upstream_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -572,8 +572,10 @@ Host::CreateConnectionData HostImplBase::createConnection(
connection->connectionInfoSetter().enableSettingInterfaceName(
cluster.setLocalInterfaceNameOnUpstreamConnections());
connection->setBufferLimits(cluster.perConnectionBufferLimitBytes());
if (auto upstream_info = connection->streamInfo().upstreamInfo(); upstream_info) {
upstream_info->setUpstreamHost(host);
}
cluster.createNetworkFilterChain(*connection);
connection->streamInfo().upstreamInfo()->setUpstreamHost(host);
return {std::move(connection), std::move(host)};
}

Expand Down

0 comments on commit d9660a1

Please sign in to comment.