ipc: Ensure server's socket is in non-blocking mode.
-
According to the documentation for
TcpListener::from_std
the passed socket must be in non-blocking mode:The caller is responsible for ensuring that the listener is in non-blocking mode. Otherwise all I/O operations on the listener will block the thread, which will cause unexpected behavior. Non-blocking mode can be set using set_nonblocking.
- Make sure that is the case for any socket we pass to
TcpListener::from_std
.
- Make sure that is the case for any socket we pass to