rpcclient: Fix ws-reader hang on sending a response #1

Merged
fyrchik merged 1 commit from aarifullin/neoneo-go:fix/wsreader_hang into support/v0.106-mtls 2024-07-26 10:59:10 +00:00

1 commit

Author SHA1 Message Date
5481339d69 [#1] rpcclient: Fix ws-reader hang on sending a response
* `wsReader` may get blocked on sending to the response channel if
  receiver can't read the response out.
* If `wsWriter` goroutine got an error or `wsClient` is going to get shut down,
  then `wsReader` should stop trying to send the response as it's not reasonable
  and this leads only to blocking.

Signed-off-by: Airat Arifullin <a.arifullin@yadro.com>
2024-07-26 12:36:31 +03:00