Deprecate --gfe2_restart_flag_quic_shed_tls_handshake_config. PiperOrigin-RevId: 954686228
diff --git a/quiche/common/quiche_feature_flags_list.h b/quiche/common/quiche_feature_flags_list.h index 081def9..4e79786 100755 --- a/quiche/common/quiche_feature_flags_list.h +++ b/quiche/common/quiche_feature_flags_list.h
@@ -65,7 +65,6 @@ QUICHE_FLAG(bool, quiche_restart_flag_quic_client_cert_support, false, true, "If true, enables dynamic client certs in QUIC.") QUICHE_FLAG(bool, quiche_restart_flag_quic_dispatcher_close_connection_on_invalid_ack, false, false, "An invalid ack is an ack that the peer sent for a packet that was not sent by the dispatcher. If true, the dispatcher will close the connection if it receives an invalid ack.") QUICHE_FLAG(bool, quiche_restart_flag_quic_set_credential_ex_data, true, true, "If true, TlsServerConnection::AddCertChain will add CredentialExData as the ex_data of the SSL_CREDENTIAL.") -QUICHE_FLAG(bool, quiche_restart_flag_quic_shed_tls_handshake_config, true, true, "If true, QUIC connections will call SSL_set_shed_handshake_config to drop BoringSSL handshake state after the handshake finishes in order to save memory.") QUICHE_FLAG(bool, quiche_restart_flag_quic_support_release_time_for_gso, false, false, "If true, QuicGsoBatchWriter will support release time if it is available and the process has the permission to do so.") QUICHE_FLAG(bool, quiche_restart_flag_quic_testonly_default_false, false, false, "A testonly restart flag that will always default to false.") QUICHE_FLAG(bool, quiche_restart_flag_quic_testonly_default_true, true, true, "A testonly restart flag that will always default to true.")
diff --git a/quiche/quic/core/crypto/tls_connection.cc b/quiche/quic/core/crypto/tls_connection.cc index 07cc137..7c391bb 100644 --- a/quiche/quic/core/crypto/tls_connection.cc +++ b/quiche/quic/core/crypto/tls_connection.cc
@@ -97,10 +97,7 @@ : delegate_(delegate), ssl_(SSL_new(ssl_ctx)), ssl_config_(std::move(ssl_config)) { - if (GetQuicRestartFlag(quic_shed_tls_handshake_config)) { - QUIC_RESTART_FLAG_COUNT_N(quic_shed_tls_handshake_config, 2, 2); - SSL_set_shed_handshake_config(ssl(), /*enable=*/1); - } + SSL_set_shed_handshake_config(ssl(), /*enable=*/1); SSL_set_ex_data( ssl(), SslIndexSingleton::GetInstance()->ssl_ex_data_index_connection(), this);
diff --git a/quiche/quic/core/tls_handshaker.cc b/quiche/quic/core/tls_handshaker.cc index 228e9dd..7f1b8cd 100644 --- a/quiche/quic/core/tls_handshaker.cc +++ b/quiche/quic/core/tls_handshaker.cc
@@ -227,9 +227,7 @@ } size_t TlsHandshaker::BufferSizeLimitForLevel(EncryptionLevel level) const { - if (GetQuicRestartFlag(quic_shed_tls_handshake_config) && - level != ENCRYPTION_FORWARD_SECURE && !SSL_in_init(ssl())) { - QUIC_RESTART_FLAG_COUNT_N(quic_shed_tls_handshake_config, 1, 2); + if (level != ENCRYPTION_FORWARD_SECURE && !SSL_in_init(ssl())) { // TODO(crbug.com/459517298): Remove this branch when BoringSSL is fixed. return 0; }