Roman Zeyde
6 years ago
No known key found for this signature in database
GPG Key ID: 87CAE5FA46917CBB
1 changed files with
3 additions and
1 deletions
-
src/rpc.rs
|
|
@ -515,7 +515,9 @@ 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"); |
|
|
|
stream |
|
|
|
.set_nonblocking(false) |
|
|
|
.expect("failed to set connection as blocking"); |
|
|
|
acceptor.send(Some((stream, addr))).expect("send failed"); |
|
|
|
} |
|
|
|
}); |
|
|
|