From 5bcacde8381a579215ef2e349379107b13d8ca16 Mon Sep 17 00:00:00 2001 From: Ingvar Stepanyan Date: Sun, 14 Jan 2024 19:14:37 +0000 Subject: [PATCH] Fix socket deadlock --- src/server/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/server/mod.rs b/src/server/mod.rs index 87903ad..2627953 100644 --- a/src/server/mod.rs +++ b/src/server/mod.rs @@ -165,6 +165,7 @@ impl Server { socket.set_only_v6(false)?; } + socket.set_nonblocking(true)?; socket.bind(&addr.into())?; socket.listen(128)?;