Skip to content

Commit

Permalink
Minimze diff and add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
larseggert committed Apr 11, 2024
1 parent 1fc7132 commit 4cbe869
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion neqo-transport/src/connection/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1967,7 +1967,7 @@ impl Connection {
}
}

// Check if there is a Datagram to be written
// Datagrams are best-effort and unreliable. Let streams starve them for now.
self.quic_datagrams.write_frames(builder, tokens, stats);
if builder.is_full() {
return;
Expand Down Expand Up @@ -1996,6 +1996,7 @@ impl Connection {

#[cfg(test)]
{
// Need to check if the previous `write_frames` call filled the packet.
if builder.is_full() {
return;
}
Expand Down

0 comments on commit 4cbe869

Please sign in to comment.