Skip to content

Commit

Permalink
BUILD: quic: fix a build error about an non initialized timestamp
Browse files Browse the repository at this point in the history
This is to please a non identified compilers which complains about an hypothetic
<time_ns> variable which would be not initialized even if this is the case only
when it is not used.

This build issue arrived with this commit:
	BUG/MINOR: improve BBR throughput on very fast links

Should be backported to 3.1 with this previous commit.
  • Loading branch information
haproxyFred committed Nov 29, 2024
1 parent 37487ad commit 7868dc9
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/quic_rx.c
Original file line number Diff line number Diff line change
Expand Up @@ -432,13 +432,10 @@ static void qc_notify_cc_of_newly_acked_pkts(struct quic_conn *qc,
struct quic_cc_drs *drs =
p->cc.algo->get_drs ? p->cc.algo->get_drs(&p->cc) : NULL;
unsigned int bytes_delivered = 0, pkt_delivered = 0;
uint64_t time_ns;
uint64_t time_ns = task_mono_time();

TRACE_ENTER(QUIC_EV_CONN_PRSAFRM, qc);

if (drs)
time_ns = task_mono_time();

list_for_each_entry_safe(pkt, tmp, newly_acked_pkts, list) {
pkt->pktns->tx.in_flight -= pkt->in_flight_len;
p->prep_in_flight -= pkt->in_flight_len;
Expand Down

0 comments on commit 7868dc9

Please sign in to comment.