Skip to content

Commit

Permalink
Remove feature flag upstream_allow_connect_with_2xx (envoyproxy#35521)
Browse files Browse the repository at this point in the history
Signed-off-by: Vikas Choudhary <[email protected]>
Signed-off-by: asingh-g <[email protected]>
  • Loading branch information
vikaschoudhary16 authored and asingh-g committed Aug 20, 2024
1 parent 48893a8 commit a8826be
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
3 changes: 3 additions & 0 deletions changelogs/current.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ removed_config_or_runtime:
- area: stateful_session
change: |
Removed ``envoy.reloadable_features.stateful_session_encode_ttl_in_cookie`` runtime flag and legacy code paths.
- area: upstream
change: |
Removed runtime flag ``envoy.reloadable_features.upstream_allow_connect_with_2xx`` and legacy code paths.
- area: upstream flow control
change: |
Removed ``envoy.reloadable_features.upstream_wait_for_response_headers_before_disabling_read`` runtime flag
Expand Down
5 changes: 1 addition & 4 deletions source/common/router/upstream_codec_filter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,7 @@ void UpstreamCodecFilter::CodecBridge::decodeHeaders(Http::ResponseHeaderMapPtr&
filter_.callbacks_->dispatcher().timeSource());

if (filter_.callbacks_->upstreamCallbacks()->pausedForConnect() &&
((Http::Utility::getResponseStatus(*headers) == 200) ||
((Runtime::runtimeFeatureEnabled(
"envoy.reloadable_features.upstream_allow_connect_with_2xx")) &&
(Http::CodeUtility::is2xx(Http::Utility::getResponseStatus(*headers)))))) {
((Http::CodeUtility::is2xx(Http::Utility::getResponseStatus(*headers))))) {
filter_.callbacks_->upstreamCallbacks()->setPausedForConnect(false);
filter_.callbacks_->continueDecoding();
}
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 @@ -90,7 +90,6 @@ RUNTIME_GUARD(envoy_reloadable_features_tcp_tunneling_send_downstream_fin_on_ups
RUNTIME_GUARD(envoy_reloadable_features_test_feature_true);
RUNTIME_GUARD(envoy_reloadable_features_udp_socket_apply_aggregated_read_limit);
RUNTIME_GUARD(envoy_reloadable_features_uhv_allow_malformed_url_encoding);
RUNTIME_GUARD(envoy_reloadable_features_upstream_allow_connect_with_2xx);
RUNTIME_GUARD(envoy_reloadable_features_upstream_remote_address_use_connection);
RUNTIME_GUARD(envoy_reloadable_features_use_typed_metadata_in_proxy_protocol_listener);
RUNTIME_GUARD(envoy_reloadable_features_validate_connect);
Expand Down

0 comments on commit a8826be

Please sign in to comment.