From a79413afce07eb15ef793348086ccbfa83c0af2f Mon Sep 17 00:00:00 2001 From: Alessandro Ghedini Date: Wed, 12 Jun 2024 09:26:01 +0100 Subject: [PATCH] apps: keep processing connections after draining one If a connection doesn't have any more packets to send, we should keep processing other connections, rather than going back to polling. --- apps/src/bin/quiche-server.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/src/bin/quiche-server.rs b/apps/src/bin/quiche-server.rs index a57e354d90..805b45da66 100644 --- a/apps/src/bin/quiche-server.rs +++ b/apps/src/bin/quiche-server.rs @@ -581,7 +581,7 @@ fn main() { } if total_write == 0 || dst_info.is_none() { - break; + continue; } if let Err(e) = send_to(