From dbde6d7d9099c65556c759cb18ba00e16a363f3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Kr=C3=B6ning?= Date: Wed, 14 Feb 2024 17:17:04 +0100 Subject: [PATCH] ci: add udp read timeout MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Martin Kröning --- xtask/src/ci/qemu.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/xtask/src/ci/qemu.rs b/xtask/src/ci/qemu.rs index 8c774bf531..e58b0e0ed8 100644 --- a/xtask/src/ci/qemu.rs +++ b/xtask/src/ci/qemu.rs @@ -309,6 +309,7 @@ fn test_mioudp() -> Result<()> { socket.connect("127.0.0.1:9975")?; socket.send(buf.as_bytes())?; + socket.set_read_timeout(Some(Duration::from_secs(10)))?; let mut buf = [0; 128]; let received = socket.recv(&mut buf)?; eprintln!("[CI] receive: {}", from_utf8(&buf[..received])?);