summaryrefslogtreecommitdiffstats
path: root/ipc
diff options
context:
space:
mode:
authorNeal H. Walfield <neal@pep.foundation>2022-06-08 12:59:34 +0200
committerNeal H. Walfield <neal@pep.foundation>2022-06-09 14:36:05 +0200
commit200989b3641d2ee47f048a0f55ab32f8c7f64c3b (patch)
tree9901b276cf7fe5962915de652234a129db3ca870 /ipc
parentde8583b632dc63b490b646624ffb7f956391d7a2 (diff)
ipc: Make sure the socket is non-blocking.
- When using tokio 1, the socket needs to be non-blocking otherwise the server hangs.
Diffstat (limited to 'ipc')
-rw-r--r--ipc/src/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/ipc/src/lib.rs b/ipc/src/lib.rs
index e7c0adf4..70a22615 100644
--- a/ipc/src/lib.rs
+++ b/ipc/src/lib.rs
@@ -143,6 +143,7 @@ impl Descriptor {
cookie.send(&mut s)?;
/* Tokioize. */
+ s.set_nonblocking(true)?;
let stream = tokio::net::TcpStream::from_std(s)?;
stream.set_nodelay(true)?;