Skip to content

Commit

Permalink
Additional trace logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Ralith committed Apr 29, 2024
1 parent 0c0a1e5 commit 79246f5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions quinn-proto/src/connection/datagrams.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,8 @@ impl DatagramState {
return false;
}

trace!(len = datagram.data.len(), "DATAGRAM");

self.outgoing_total -= datagram.data.len();
datagram.encode(true, buf);
true
Expand Down
2 changes: 2 additions & 0 deletions quinn-proto/src/connection/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -639,6 +639,7 @@ impl Connection {
congestion_blocked = true;
// We continue instead of breaking here in order to avoid
// blocking loss probes queued for higher spaces.
trace!("blocked by congestion control");
continue;
}

Expand All @@ -655,6 +656,7 @@ impl Connection {
congestion_blocked = true;
// Loss probes should be subject to pacing, even though
// they are not congestion controlled.
trace!("blocked by pacing");
break;
}
}
Expand Down

0 comments on commit 79246f5

Please sign in to comment.