)]}'
{
  "commit": "8cd3a5a2f8f7eb920504e512b1d73ab701b1cc15",
  "tree": "7f9f3feea3cc2a7f9d165cecf1c995fde3382780",
  "parents": [
    "389b3116b7b9ed16a09d0772a8f336f38b25b201"
  ],
  "author": {
    "name": "ianswett",
    "email": "ianswett@google.com",
    "time": "Fri Nov 13 12:50:40 2026 -0800"
  },
  "committer": {
    "name": "Copybara-Service",
    "email": "copybara-worker@google.com",
    "time": "Fri Nov 13 12:51:45 2026 -0800"
  },
  "message": "Evict obsolete packets in BandwidthSampler::OnPacketSent.\n\n`QuicSentPacketManager::PostProcessNewlyAckedPackets` invokes congestion control loss/ack callbacks before advancing `least_unacked` in `QuicUnackedPacketMap`. If a congestion controller is stashed across a peer address migration and later restored after packet numbers have advanced, acked or lost packets left in `BandwidthSampler` prevent its packet-number-indexed queue from advancing its front index, causing unbounded queue growth or exceeding `max_tracked_packets`. In addition, `Bbr2NetworkModel` previously passed `nullptr` for `unacked_packet_map` when constructing `BandwidthSampler` for BBRv2 and BBRv3.\n\nWhen `quic_sampler_remove_obsolete_packets` is enabled, evict entries older than `QuicUnackedPacketMap::GetLeastUnacked()` in `BandwidthSampler::OnPacketSent` before checking `max_tracked_packets` and emplacing new packets, and plumb `unacked_packets` into `Bbr2NetworkModel` from `Bbr2Sender` and `Bbr3Sender`.\n\nProtected by FLAGS_quic_reloadable_flag_quic_sampler_remove_obsolete_packets.\n\nPiperOrigin-RevId: 1021256104\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "6ae1f1d7e85bf09d2397d65564a3ff1208da10c4",
      "old_mode": 33188,
      "old_path": "quiche/common/quiche_feature_flags_list.h",
      "new_id": "d250e673f06354e6f5d2299e6bf3bfcb9793f018",
      "new_mode": 33188,
      "new_path": "quiche/common/quiche_feature_flags_list.h"
    },
    {
      "type": "modify",
      "old_id": "d5fef8070f3ee47f8037e225399cc7ad152402d1",
      "old_mode": 33188,
      "old_path": "quiche/quic/core/congestion_control/bandwidth_sampler.cc",
      "new_id": "1444ed2ac954c4ab71bf07e5c6526aa9c2ac80a4",
      "new_mode": 33188,
      "new_path": "quiche/quic/core/congestion_control/bandwidth_sampler.cc"
    },
    {
      "type": "modify",
      "old_id": "e11e6bffe11e95e0770e78c6763fad5d4d2bba2e",
      "old_mode": 33188,
      "old_path": "quiche/quic/core/congestion_control/bandwidth_sampler.h",
      "new_id": "3232cdafb991968371d03eb4d783cd5803c69a16",
      "new_mode": 33188,
      "new_path": "quiche/quic/core/congestion_control/bandwidth_sampler.h"
    },
    {
      "type": "modify",
      "old_id": "2ec5df585b44566bd0909396c3fdf4f8d0d04c78",
      "old_mode": 33188,
      "old_path": "quiche/quic/core/congestion_control/bbr2_misc.cc",
      "new_id": "265942510ccb89c1700826c8df3aff6fd1c4cd8b",
      "new_mode": 33188,
      "new_path": "quiche/quic/core/congestion_control/bbr2_misc.cc"
    },
    {
      "type": "modify",
      "old_id": "9d78bee1269ab3cceeab7cf5a85a56343d3a53ba",
      "old_mode": 33188,
      "old_path": "quiche/quic/core/congestion_control/bbr2_misc.h",
      "new_id": "367e319ad4eb0e3426ea2bbe0e5cbae56d78416b",
      "new_mode": 33188,
      "new_path": "quiche/quic/core/congestion_control/bbr2_misc.h"
    },
    {
      "type": "modify",
      "old_id": "730a78187762e3d27003570490cecc4f5d9d5092",
      "old_mode": 33188,
      "old_path": "quiche/quic/core/congestion_control/bbr2_sender.cc",
      "new_id": "e1a87ade1d338ce70540707ef804ba523499d9d4",
      "new_mode": 33188,
      "new_path": "quiche/quic/core/congestion_control/bbr2_sender.cc"
    },
    {
      "type": "modify",
      "old_id": "4fe8829d3c671a1a52b0a2709cedae759592b492",
      "old_mode": 33188,
      "old_path": "quiche/quic/core/congestion_control/bbr3_sender.cc",
      "new_id": "e0240496e00c6cdceba98171b5bf9e01e00bc2ae",
      "new_mode": 33188,
      "new_path": "quiche/quic/core/congestion_control/bbr3_sender.cc"
    },
    {
      "type": "modify",
      "old_id": "635644bdeeb8cefb1497749eb27c3e803b5c7abb",
      "old_mode": 33188,
      "old_path": "quiche/quic/core/quic_connection_test.cc",
      "new_id": "31f8dcf15dd37d9c055c2d31987bf128b269ff0e",
      "new_mode": 33188,
      "new_path": "quiche/quic/core/quic_connection_test.cc"
    },
    {
      "type": "modify",
      "old_id": "b4bbfb6e079004eef5959ff8d0d2d8e67ab7f3a3",
      "old_mode": 33188,
      "old_path": "quiche/quic/core/quic_sent_packet_manager_test.cc",
      "new_id": "193b4dcd2f455236ad1d2e2af5c4f39c6e448463",
      "new_mode": 33188,
      "new_path": "quiche/quic/core/quic_sent_packet_manager_test.cc"
    }
  ]
}
