Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

client: Isolate dial errors #561

Merged
merged 1 commit into from
Feb 28, 2024
Merged

client: Isolate dial errors #561

merged 1 commit into from
Feb 28, 2024

Conversation

cthulhu-rider
Copy link
Contributor

cthulhu-rider added a commit to nspcc-dev/neofs-node that referenced this pull request Feb 28, 2024
This pulls NeoFS SDK version containing fix of the NeoFS API client dial
failures nspcc-dev/neofs-sdk-go#561. Previously,
any connection errors, including TLS, resulted in waiting for a
deadline and returning `context.DeadlineExceeded`. This did not make it
possible to distinguish them from timeouts and identify the root cause.

In addition, irreparable errors such as an incorrect network address or
connection refusal were also reduced to `context.DeadlineExceeded`, even
if they were received quickly. This behavior has also been fixed.

Fixes #2561.

Signed-off-by: Leonard Lyubich <leonard@morphbits.io>
@cthulhu-rider cthulhu-rider marked this pull request as draft February 28, 2024 12:05
@cthulhu-rider cthulhu-rider marked this pull request as ready for review February 28, 2024 16:46
Fix came from nspcc-dev/neofs-api-go#445 for the
problem described in nspcc-dev/neofs-node#2561.
Also now any irreparable errors (like invalid net address or TLS
handshake) will be returned immediately, not upon reaching the deadline.

Signed-off-by: Leonard Lyubich <leonard@morphbits.io>
@roman-khimov roman-khimov merged commit 753e0c0 into master Feb 28, 2024
5 checks passed
@roman-khimov roman-khimov deleted the client-ret-dial-errors branch February 28, 2024 18:28
cthulhu-rider added a commit to nspcc-dev/neofs-node that referenced this pull request Feb 29, 2024
This pulls NeoFS SDK version containing fix of the NeoFS API client dial
failures nspcc-dev/neofs-sdk-go#561. Previously,
any connection errors, including TLS, resulted in waiting for a
deadline and returning `context.DeadlineExceeded`. This did not make it
possible to distinguish them from timeouts and identify the root cause.

In addition, irreparable errors such as an incorrect network address or
connection refusal were also reduced to `context.DeadlineExceeded`, even
if they were received quickly. This behavior has also been fixed.

Fixes #2561.

Signed-off-by: Leonard Lyubich <leonard@morphbits.io>
cthulhu-rider added a commit to nspcc-dev/neofs-node that referenced this pull request Mar 4, 2024
This pulls NeoFS API Go version containing fix of the NeoFS API client dial
failures nspcc-dev/neofs-sdk-go#561. Previously,
any connection errors, including TLS, resulted in waiting for a
deadline and returning `context.DeadlineExceeded`. This did not make it
possible to distinguish them from timeouts and identify the root cause.

In addition, irreparable errors such as an incorrect network address or
connection refusal were also reduced to `context.DeadlineExceeded`, even
if they were received quickly. This behavior has also been fixed.

Fixes #2561.

Signed-off-by: Leonard Lyubich <leonard@morphbits.io>
cthulhu-rider added a commit to nspcc-dev/neofs-node that referenced this pull request Mar 4, 2024
This pulls NeoFS API Go version containing fix of the NeoFS API client dial
failures nspcc-dev/neofs-sdk-go#561. Previously,
any connection errors, including TLS, resulted in waiting for a
deadline and returning `context.DeadlineExceeded`. This did not make it
possible to distinguish them from timeouts and identify the root cause.

In addition, irreparable errors such as an incorrect network address or
connection refusal were also reduced to `context.DeadlineExceeded`, even
if they were received quickly. This behavior has also been fixed.

Fixes #2561.

Signed-off-by: Leonard Lyubich <leonard@morphbits.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants