From 1f269a49c7544b15869cbea2cbde9d021b71a9c4 Mon Sep 17 00:00:00 2001 From: Yan Avlasov Date: Tue, 30 Jul 2024 14:41:11 +0000 Subject: [PATCH] Post merge fix Signed-off-by: Yan Avlasov --- source/common/quic/envoy_quic_utils.cc | 2 ++ test/common/router/router_test.cc | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/source/common/quic/envoy_quic_utils.cc b/source/common/quic/envoy_quic_utils.cc index 137d5f2b80c2..3b4baaf43fb9 100644 --- a/source/common/quic/envoy_quic_utils.cc +++ b/source/common/quic/envoy_quic_utils.cc @@ -90,6 +90,8 @@ quic::QuicRstStreamErrorCode envoyResetReasonToQuicRstError(Http::StreamResetRea case Http::StreamResetReason::RemoteRefusedStreamReset: case Http::StreamResetReason::RemoteReset: IS_ENVOY_BUG("Remote reset shouldn't be initiated by self."); + case Http::StreamResetReason::Http1PrematureUpstreamHalfClose: + IS_ENVOY_BUG("H/1 premature response reset is not applicable to H/3."); } ENVOY_LOG_MISC(error, absl::StrCat("Unknown reset reason: ", reason)); diff --git a/test/common/router/router_test.cc b/test/common/router/router_test.cc index 81fd96c85f8a..3bfbf74d3244 100644 --- a/test/common/router/router_test.cc +++ b/test/common/router/router_test.cc @@ -3476,7 +3476,7 @@ TEST_F(RouterTest, NoRetryWithBodyLimitWithUpstreamHalfCloseEnabled) { Buffer::OwnedImpl body("t"); router_->decodeData(body, false); EXPECT_EQ(1U, - callbacks_.route_->route_entry_.virtual_cluster_.stats().upstream_rq_total_.value()); + callbacks_.route_->virtual_host_.virtual_cluster_.stats().upstream_rq_total_.value()); Http::ResponseHeaderMapPtr response_headers( new Http::TestResponseHeaderMapImpl{{":status", "200"}});