neoneo-go/pkg
Leonard Lyubich f8227aa5f7 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-08-01 17:27:11 +03:00
..
compiler compiler: don't panic, return error for strange range loops 2023-01-11 16:21:40 +03:00
config config: do not allow negative validators count 2023-08-01 17:22:39 +03:00
consensus consensus: perform batched chain's block sync 2023-03-15 17:45:56 +03:00
core core: improve documentation to SetOracle/SetNotary 2023-08-01 17:26:17 +03:00
crypto *: fix Neo and NeoGo misuses 2022-12-07 17:29:09 +03:00
encoding bigint: don't reallocate big.Int in ToBytes(), fix #2864 2023-01-10 22:51:45 +03:00
interop interop: add getContractByID and getContractHashes to management 2022-12-02 10:54:45 +03:00
io *: fix Neo and NeoGo misuses 2022-12-07 17:29:09 +03:00
neorpc config: use uint32 for validators/committee members count 2023-08-01 17:22:28 +03:00
neotest config: replace VerifyBlocks with SkipBlockVerification 2022-12-07 17:35:56 +03:00
network network: do not use error channel to start network srv 2023-08-01 17:22:01 +03:00
rpcclient config: use uint32 for validators/committee members count 2023-08-01 17:22:28 +03:00
services services/rpcsrv: Fix potential shutdown deadlock of RPC server 2023-08-01 17:27:11 +03:00
smartcontract rpcbinding: fix wrappers for Any type, fix #2898 2023-02-18 00:06:45 +03:00
util slice: add Clean microfunction 2022-09-02 14:44:32 +03:00
vm interop/contract: fix state rollbacks for nested contexts 2023-06-29 11:58:12 +03:00
wallet Merge pull request #2725 from nspcc-dev/move-cli-tests 2022-10-06 13:43:39 +07:00