mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-29 09:27:36 +00:00
a113940f0b
Previously RPC server could never be shut down completely due to some start precondition failure (in particular, inability to serve HTTP on any configured endpoint). The problem was caused by next facts: * start method ran subscription routine after HTTP init succeeded only * stop method blocked waiting for the subscription routine to return Run `handleSubEvents` routine on fresh `Start` unconditionally. With this change, `Shutdown` method won't produce deadlock since `handleSubEvents` closes wait channel. Refs #2896. Signed-off-by: Leonard Lyubich <leonard@morphbits.io> |
||
---|---|---|
.. | ||
params | ||
testdata | ||
client_test.go | ||
error.go | ||
local_test.go | ||
prometheus.go | ||
server.go | ||
server_helper_test.go | ||
server_test.go | ||
subscription.go | ||
subscription_test.go | ||
tokens.go | ||
util.go |