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

issue #2821 Update error handling logic when opening a TCP connection #2822

Merged
merged 1 commit into from
Oct 19, 2023

Commits on Oct 18, 2023

  1. issue launchbadge#2821 Update error handling logic when opening a TCP…

    … connection
    
    This commit updates the error handling logic in the `connect_tcp` function. Previously, the function would panic if the hostname did not resolve to at least one address.
    
    The updated logic attempts to establish a TCP connection for each address that the hostname resolves to. If it fails to connect to any of the addresses, it will return the last encountered error. If the hostname doesn't resolve to any addresses, the function returns a custom error message stating "Hostname did not resolve to any addresses".
    anupj committed Oct 18, 2023
    Configuration menu
    Copy the full SHA
    a571e93 View commit details
    Browse the repository at this point in the history