neoneo-go/pkg
Leonard Lyubich e126bcc462 services/rpcsrv: Wait for subscription process to complete when stopped
Previously RPC server shutdown procedure listened to the execution
channel and stopped at the first element that arrived in the queue. This
could lead to the following problems:
 * stopper could steal the execution result from subscriber
 * stopper didn't wait for other subscription actions to complete

Add dedicated channel to `Server` for subscription routine. Close the
channel on `handleSubEvents` return and wait for signal in `Shutdown`.

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: Wait for subscription process to complete when stopped 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