mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-23 03:41:34 +00:00
e29c33e449
If `StartWhenSynchronized` is unset in config, `node` command runs RPC service instantly. Previously there was a ground for deadlock. Command started RPC server synchronously. According to server implementation, it sends all internal failures to the parameterized error channel. Deadlock occured because main routine didn't scan the channel. Run `rpcsrv.Server.Start` in a separate go-routine in `startServer`. This prevents potential deadlock caused by writing into unread channel. Fixes #2896. Signed-off-by: Leonard Lyubich <leonard@morphbits.io> |
||
---|---|---|
.. | ||
testdata | ||
cli_dump_test.go | ||
cli_server_test.go | ||
dump.go | ||
dump_test.go | ||
server.go | ||
server_test.go | ||
signals_unix.go | ||
signals_windows.go |