From 8c6aa360270da6defde2663b7413b80f0d84aaa2 Mon Sep 17 00:00:00 2001 From: Joe Date: Fri, 30 Jan 2026 11:40:01 -0600 Subject: [PATCH] Enhance error handling in TestServeSession for interrupted reads - Updated the error handling logic in the TestServeSession implementation to account for `std::io::ErrorKind::Interrupted`, ensuring that the session can properly retry on interrupted read operations, in addition to handling timeouts and would-block scenarios. --- tests/rojo_test/serve_util.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/rojo_test/serve_util.rs b/tests/rojo_test/serve_util.rs index 2ffe2322..8a9635ec 100644 --- a/tests/rojo_test/serve_util.rs +++ b/tests/rojo_test/serve_util.rs @@ -216,9 +216,10 @@ impl TestServeSession { } Err(hyper_tungstenite::tungstenite::Error::Io(e)) if e.kind() == std::io::ErrorKind::WouldBlock - || e.kind() == std::io::ErrorKind::TimedOut => + || e.kind() == std::io::ErrorKind::TimedOut + || e.kind() == std::io::ErrorKind::Interrupted => { - // No data available yet or read timed out, try again + // No data available yet, read timed out, or interrupted by signal - try again continue; } Err(e) => {