Skip to content

Commit

Permalink
runtime: removing send_goaway_for_premature_rst_streams (#34735)
Browse files Browse the repository at this point in the history
Signed-off-by: Alyssa Wilk <alyssar@chromium.org>
  • Loading branch information
alyssawilk committed Jun 18, 2024
1 parent 69bb97b commit 87bc8a9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 10 deletions.
3 changes: 3 additions & 0 deletions changelogs/current.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,9 @@ removed_config_or_runtime:
- area: http
change: |
Removed ``envoy.reloadable_features.use_cluster_cache_for_alt_protocols_filter`` runtime flag and lagacy code paths.
- area: http
change: |
Removed ``envoy.restart_features.send_goaway_for_premature_rst_streams`` runtime flag and legacy code paths.
- area: load_balancing
change: |
Removed ``envoy.reloadable_features.enable_zone_routing_different_zone_counts`` runtime flag and legacy code paths.
Expand Down
4 changes: 1 addition & 3 deletions source/common/http/conn_manager_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -669,9 +669,7 @@ bool ConnectionManagerImpl::isPrematureRstStream(const ActiveStream& stream) con
// Sends a GOAWAY if too many streams have been reset prematurely on this
// connection.
void ConnectionManagerImpl::maybeDrainDueToPrematureResets() {
if (!Runtime::runtimeFeatureEnabled(
"envoy.restart_features.send_goaway_for_premature_rst_streams") ||
closed_non_internally_destroyed_requests_ == 0) {
if (closed_non_internally_destroyed_requests_ == 0) {
return;
}

Expand Down
1 change: 0 additions & 1 deletion source/common/runtime/runtime_features.cc
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ RUNTIME_GUARD(envoy_reloadable_features_xdstp_path_avoid_colon_encoding);
RUNTIME_GUARD(envoy_restart_features_allow_client_socket_creation_failure);
RUNTIME_GUARD(envoy_restart_features_allow_slot_destroy_on_worker_threads);
RUNTIME_GUARD(envoy_restart_features_quic_handle_certs_with_shared_tls_code);
RUNTIME_GUARD(envoy_restart_features_send_goaway_for_premature_rst_streams);
RUNTIME_GUARD(envoy_restart_features_udp_read_normalize_addresses);
RUNTIME_GUARD(envoy_restart_features_use_fast_protobuf_hash);

Expand Down
6 changes: 0 additions & 6 deletions test/integration/multiplexed_integration_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1118,8 +1118,6 @@ TEST_P(MultiplexedIntegrationTest, GoAway) {
TEST_P(MultiplexedIntegrationTestWithSimulatedTime, GoAwayAfterTooManyResets) {
EXCLUDE_DOWNSTREAM_HTTP3; // Need to wait for the server to reset the stream
// before opening new one.
config_helper_.addRuntimeOverride("envoy.restart_features.send_goaway_for_premature_rst_streams",
"true");
const int total_streams = 100;
config_helper_.addRuntimeOverride("overload.premature_reset_total_stream_count",
absl::StrCat(total_streams));
Expand Down Expand Up @@ -1159,8 +1157,6 @@ TEST_P(MultiplexedIntegrationTestWithSimulatedTime, GoAwayAfterTooManyResets) {
TEST_P(MultiplexedIntegrationTestWithSimulatedTime, GoAwayQuicklyAfterTooManyResets) {
EXCLUDE_DOWNSTREAM_HTTP3; // Need to wait for the server to reset the stream
// before opening new one.
config_helper_.addRuntimeOverride("envoy.restart_features.send_goaway_for_premature_rst_streams",
"true");
const int total_streams = 100;
config_helper_.addRuntimeOverride("overload.premature_reset_total_stream_count",
absl::StrCat(total_streams));
Expand All @@ -1187,8 +1183,6 @@ TEST_P(MultiplexedIntegrationTestWithSimulatedTime, GoAwayQuicklyAfterTooManyRes
TEST_P(MultiplexedIntegrationTestWithSimulatedTime, DontGoAwayAfterTooManyResetsForLongStreams) {
EXCLUDE_DOWNSTREAM_HTTP3; // Need to wait for the server to reset the stream
// before opening new one.
config_helper_.addRuntimeOverride("envoy.restart_features.send_goaway_for_premature_rst_streams",
"true");
const int total_streams = 100;
const int stream_lifetime_seconds = 2;
config_helper_.addRuntimeOverride("overload.premature_reset_total_stream_count",
Expand Down

0 comments on commit 87bc8a9

Please sign in to comment.