neo-go/pkg
Leonard Lyubich a113940f0b services/rpcsrv: Fix potential shutdown deadlock of RPC server
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>
2023-04-17 10:42:50 +04:00
..
compiler core: add Backwards option for storage iterators 2023-04-12 16:45:38 +03:00
config config: fix the default P2P ping settings 2022-12-07 21:29:40 +03:00
consensus *: replace interface{} with any keyword 2023-04-04 13:22:42 +03:00
core core: add Backwards option for storage iterators 2023-04-12 16:45:38 +03:00
crypto *: replace interface{} with any keyword 2023-04-04 13:22:42 +03:00
encoding *: replace interface{} with any keyword 2023-04-04 13:22:42 +03:00
interop core: add Backwards option for storage iterators 2023-04-12 16:45:38 +03:00
io *: replace interface{} with any keyword 2023-04-04 13:22:42 +03:00
neorpc neorpc: change peer port to int type (fixes nspcc-dev#2910) 2023-04-06 18:33:09 +02:00
neotest core: add BLS12_381 interops 2023-04-05 15:37:50 +03:00
network Merge pull request #2957 from nspcc-dev/rm-go-17 2023-04-04 15:25:14 +03:00
rpcclient neorpc: change peer port to int type (fixes nspcc-dev#2910) 2023-04-06 18:33:09 +02:00
services services/rpcsrv: Fix potential shutdown deadlock of RPC server 2023-04-17 10:42:50 +04:00
smartcontract Merge pull request #2957 from nspcc-dev/rm-go-17 2023-04-04 15:25:14 +03:00
util *: replace interface{} with any keyword 2023-04-04 13:22:42 +03:00
vm *: replace interface{} with any keyword 2023-04-04 13:22:42 +03:00
wallet Merge pull request #2725 from nspcc-dev/move-cli-tests 2022-10-06 13:43:39 +07:00