Skip to content

Commit

Permalink
fix: unshift probe on local failure refunds wrong probe size
Browse files Browse the repository at this point in the history
  • Loading branch information
jthomas43 committed Feb 20, 2024
1 parent 6decec0 commit fbdeb43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/udx.c
Original file line number Diff line number Diff line change
Expand Up @@ -949,7 +949,7 @@ udx__unshift_packet (udx_packet_t *pkt, udx_socket_t *socket) {
debug_printf("undoing packet that finished write\n");
udx__fifo_undo(&stream->write_queue);
}
write->bytes_inflight -= pkt->bufs[1].len;
write->bytes_inflight -= pkt->bufs[pkt->bufs_len - 1].len;

// probe rollback
if (pkt->is_mtu_probe) {
Expand Down

0 comments on commit fbdeb43

Please sign in to comment.