Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add bytes-inflight in case of retransmit-TLP #204

Merged
merged 1 commit into from
Sep 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions src/udx.c
Original file line number Diff line number Diff line change
Expand Up @@ -842,8 +842,15 @@ udx__shift_packet (udx_socket_t *socket) {
}
debug_printf("\n");

// packet may not actually be in the retransmit queue, but that's OK
udx__fifo_remove(&stream->retransmit_queue, pkt, pkt->fifo_gc);
// we selected the packet with the highest sequence number to retransmit
// it may be in-flight already or it may be marked 'lost' (in the retransmit queue)
// if not inflight already, mark it inflight and adjust counters:

if (pkt->lost) {
udx__fifo_remove(&stream->retransmit_queue, pkt, pkt->fifo_gc);
stream->inflight += pkt->size;
stream->pkts_inflight++;
}

stream->tlp_is_retrans = true;
pkt->is_tlp = true;
Expand Down
Loading