diff options
author | Neal H. Walfield <neal@pep.foundation> | 2022-06-08 12:59:34 +0200 |
---|---|---|
committer | Neal H. Walfield <neal@pep.foundation> | 2022-06-09 14:36:05 +0200 |
commit | 200989b3641d2ee47f048a0f55ab32f8c7f64c3b (patch) | |
tree | 9901b276cf7fe5962915de652234a129db3ca870 /ipc | |
parent | de8583b632dc63b490b646624ffb7f956391d7a2 (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.rs | 1 |
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)?; |