Skip to content

ConnectErrors improvements #197

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

Merged
merged 3 commits into from
May 27, 2025
Merged

ConnectErrors improvements #197

merged 3 commits into from
May 27, 2025

Conversation

seanmonstar
Copy link
Member

  • Don't allocate the error message field, it's always a static string (so far).
  • When connecting multiple addresses, return the first error as it's likely the most relevant.
  • Include the socket address in the connect error.

@seanmonstar seanmonstar merged commit fc1d699 into master May 27, 2025
16 checks passed
@seanmonstar seanmonstar deleted the connect-errors-improvements branch May 27, 2025 16:02
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.

1 participant