Browse Source
Explicitly set RPC connections as blocking
skip-invalid-blocks
Roman Zeyde
6 years ago
No known key found for this signature in database
GPG Key ID: 87CAE5FA46917CBB
1 changed files with
1 additions and
0 deletions
-
src/rpc.rs
|
|
@ -515,6 +515,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"); |
|
|
|
} |
|
|
|
}); |
|
|
|