Unverified Commit 04af2448 authored by Roman Zeyde's avatar Roman Zeyde
Browse files

Explicitly set RPC connections as blocking

parent 3982c9fd
......@@ -514,6 +514,7 @@ impl RPC {
info!("RPC server running on {}", addr);
loop {
let (stream, addr) = listener.accept().expect("accept failed");
stream.set_nonblocking(false).expect("failed to set connection as blocking");
acceptor.send(Some((stream, addr))).expect("send failed");
}
});
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment