BUG/MINOR: quic: Avoid BUG_ON() on ->on_pkt_lost() BBR callback call
authorFrederic Lecaille <flecaille@haproxy.com>
Fri, 22 Nov 2024 14:40:05 +0000 (15:40 +0100)
committerFrederic Lecaille <flecaille@haproxy.com>
Fri, 22 Nov 2024 14:51:29 +0000 (15:51 +0100)
commit7472990f861fbf930c431d85c12f612f1e190fba
tree6f7a56a17af519c2f34676914bd3645ac9a1457c
parentb30639848e502f79829abc28c8093aa0e34ba1f9
BUG/MINOR: quic: Avoid BUG_ON() on ->on_pkt_lost() BBR callback call

The per-packet delivery rate sample is applied to ack-eliciting packet only
calling ->drs_on_transmit() BBR callback. So, ->on_pkt_lost() which inspects the
delivery rate sampling information during packet loss detection must not be
called for non ack-eliciting packet. If not, it would be facing with non
initialized variables with big chance to trigger a BUG_ON().

As BBR is implemented in the current developement version, there is
no need to backport this patch.
src/quic_loss.c