WIP: [SUPPORT] Make rpc client stream initialization get cancelled by dial timeout #128

Draft
aarifullin wants to merge 1 commit from aarifullin/frostfs-api-go:fix/client_rpc into support/v2.17

1 commit

Author SHA1 Message Date
cdf6f3381c [#128] rpc: Make client stream initialization get cancelled by dial timeout
All checks were successful
Tests and linters / Lint (pull_request) Successful in 1m58s
DCO action / DCO (pull_request) Successful in 4m18s
Tests and linters / Tests (pull_request) Successful in 4m52s
Tests and linters / Tests with -race (pull_request) Successful in 4m54s
* `c.conn` may be already invalidated but the rpc client can't detect this.
  `NewStream` may hang trying to open a stream with invalidated connection.
   Using timer with `dialTimeout` for `NewStream` fixes this problem.

Signed-off-by: Airat Arifullin <a.arifullin@yadro.com>
2024-12-13 15:40:02 +03:00