client: Close connection on non-nil error in Dial #282
No reviewers
TrueCloudLab/storage-core-developers
TrueCloudLab/storage-services-committers
TrueCloudLab/storage-services-developers
Labels
No labels
P0
P1
P2
P3
good first issue
pool
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-sdk-go#282
Loading…
Reference in a new issue
No description provided.
Delete branch "fyrchik/frostfs-sdk-go:fix-connection-close"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
A particular status code does not imply that connection has not been
established. However,
Dial()
requires user to callClose()
only ifthe error was nil. Thus, it is
Dial()
responsibility to closeeverything if it returns an error.
Introduced after the gRPC update in #270 (
6009d089fc
).Signed-off-by: Evgenii Stratonikov e.stratonikov@yadro.com
29be703a71
to1b1adb9600
1b1adb9600
to99c5c58365