From 4cbe869bcc3d772a21fcfbeec8bfa3d4680ecad0 Mon Sep 17 00:00:00 2001 From: Lars Eggert Date: Thu, 11 Apr 2024 16:13:24 +0300 Subject: [PATCH] Minimze diff and add comment --- neqo-transport/src/connection/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/neqo-transport/src/connection/mod.rs b/neqo-transport/src/connection/mod.rs index 33743e6c7a..bfdacd506b 100644 --- a/neqo-transport/src/connection/mod.rs +++ b/neqo-transport/src/connection/mod.rs @@ -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; @@ -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; }