Skip to content

Commit 558ce75

Browse files
committed
WIP: quic: quic_pacing modifs TO BE CHECKED
1 parent 0a0f3e6 commit 558ce75

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/quic_pacing.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,8 @@ enum quic_tx_err quic_pacing_send(struct quic_pacer *pacer, struct quic_conn *qc
2525

2626
void quic_pacing_sent_done(struct quic_pacer *pacer, int sent, ullong ns_pkts)
2727
{
28-
pacer->next = now_mono_time() + quic_pacing_ns_pkt(pacer) * sent;
28+
ullong wait_for = ns_pkts * sent;
29+
//ullong wait_for = quic_pacing_ns_pkt(pacer) * sent;
30+
pacer->next = now_mono_time() + wait_for;
31+
fprintf(stderr, "%d: wait for %llu ns\n", sent, wait_for);
2932
}

0 commit comments

Comments
 (0)