forked from TrueCloudLab/neoneo-go
6e990f39de
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 |