frostfs-sdk-go/pool
Alex Vanin ddbfb758c9 [#171] pool: Use dial status to close connections during restarts
Every client restart, pool creates new client instance. If client
failed due to dial error, there was no prior connection and go
routine on a server side. If client failed due to communication
or business logic errors, then server side maintains connection and
client should close it to avoid routine and connection leak.

Dialing is a part of healthcheck, so health status is now a enum
of three values:
- unhealthy due to dial fail,
- unhealthy due to transmission fail,
- healthy.

Signed-off-by: Alex Vanin <a.vanin@yadro.com>
2023-10-03 17:00:36 +03:00
..
tree [#136] pool: Set order field to get subtree 2023-08-02 10:32:37 +00:00
cache.go [#114] pool: Support client cut with memory limiter 2023-08-21 12:02:40 +03:00
cache_test.go Rename package name 2023-03-07 15:47:21 +03:00
doc.go [#4] Rename NeoFS mentions in comments and method names 2022-12-30 13:40:50 +03:00
mock_test.go [#169] pool: Close inner pools during close routine 2023-09-20 12:16:13 +03:00
object_put_pool_transformer.go [#149] pool: Configure homomorphic hash and buffer size 2023-08-25 09:45:15 +03:00
pool.go [#171] pool: Use dial status to close connections during restarts 2023-10-03 17:00:36 +03:00
pool_test.go [#114] pool: Support client cut with memory limiter 2023-08-21 12:02:40 +03:00
sampler.go [#165] pool: make private inner structs 2022-03-21 12:41:08 +03:00
sampler_test.go [#358] pool: Start even if not all node healthy 2022-11-09 10:22:33 +03:00
statistic.go [#51] Add current nodes as external statistics 2023-08-15 09:51:13 +03:00