Skip to content

Conversation

@plaflamme
Copy link
Contributor

Previously, when using config.stream(), it would resolve the host, port pair and pick the first address returned. But Tokio has built-in support to resolve multiple addresses and connect to each one until one succeeds. So this PR lifts the previous restriction.

The main consquence is that the Error::NotResolvable is gone since it will be reported as an Io error by Tokio instead.

Previously, when using `config.stream()`, it would resolve the host,
port pair and pick the first address returned. But Tokio has built-in
support to resolve multiple addresses and connect to each one until
one succeeds. So this PR lifts the previous restriction.

The main consquence is that the `Error::NotResolvable` is gone since it
will be reported as an `Io` error by Tokio instead.
@Eugeny
Copy link
Owner

Eugeny commented Jul 22, 2025

Thank you!

@Eugeny
Copy link
Owner

Eugeny commented Jul 22, 2025

@all-contributors please add @plaflamme for code

@allcontributors
Copy link
Contributor

@Eugeny

I've put up a pull request to add @plaflamme! 🎉

@Eugeny Eugeny merged commit fbf7ea1 into Eugeny:main Jul 22, 2025
11 checks passed
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