Add two QUIC_CODE_COUNT for trimming full time wait list and remove expired connections.
PiperOrigin-RevId: 325438312
Change-Id: I9a6600d1bb3f11cdb2d7dd5c66f3329d9f605dda
diff --git a/quic/core/quic_time_wait_list_manager.cc b/quic/core/quic_time_wait_list_manager.cc
index 575f079..a09caac 100644
--- a/quic/core/quic_time_wait_list_manager.cc
+++ b/quic/core/quic_time_wait_list_manager.cc
@@ -389,6 +389,11 @@
QUIC_DLOG(INFO) << "Connection " << it->first
<< " expired from time wait list";
connection_id_map_.erase(it);
+ if (expiration_time == QuicTime::Infinite()) {
+ QUIC_CODE_COUNT(quic_time_wait_list_trim_full);
+ } else {
+ QUIC_CODE_COUNT(quic_time_wait_list_expire_connections);
+ }
return true;
}