Add missing flag counts for --quic_dispatcher_send_connection_close_for_tls_alerts. PiperOrigin-RevId: 460515795
diff --git a/quiche/quic/core/quic_dispatcher.cc b/quiche/quic/core/quic_dispatcher.cc index 7f5b1ba..925ef14 100644 --- a/quiche/quic/core/quic_dispatcher.cc +++ b/quiche/quic/core/quic_dispatcher.cc
@@ -358,6 +358,10 @@ << "Trying to create dispatcher without any supported versions"; QUIC_DLOG(INFO) << "Created QuicDispatcher with versions: " << ParsedQuicVersionVectorToString(GetSupportedVersions()); + if (send_connection_close_for_tls_alerts_) { + QUIC_RESTART_FLAG_COUNT_N( + quic_dispatcher_send_connection_close_for_tls_alerts, 1, 3); + } } QuicDispatcher::~QuicDispatcher() { @@ -732,6 +736,8 @@ if (send_connection_close_for_tls_alerts_ && extract_chlo_result.tls_alert.has_value()) { + QUIC_RESTART_FLAG_COUNT_N( + quic_dispatcher_send_connection_close_for_tls_alerts, 2, 3); QUIC_BUG_IF(quic_dispatcher_parsed_chlo_and_tls_alert_coexist_1, parsed_chlo.has_value()) << "parsed_chlo and tls_alert should not be set at the same time."; @@ -844,6 +850,8 @@ } if (send_connection_close_for_tls_alerts_ && result.tls_alert.has_value()) { + QUIC_RESTART_FLAG_COUNT_N( + quic_dispatcher_send_connection_close_for_tls_alerts, 3, 3); QUIC_BUG_IF(quic_dispatcher_parsed_chlo_and_tls_alert_coexist_2, has_full_tls_chlo) << "parsed_chlo and tls_alert should not be set at the same time.";