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

Treat partitions as unreachable hosts #193

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

brandonpike
Copy link
Contributor

@brandonpike brandonpike commented Nov 3, 2024

Instead of returning ErrorKind::ConnectionRefused for all deliver failures, this commit makes the following differentiations:

  1. Links that are not found now return ErrorKind::HostUnreachable("host unreachable")
  2. Links that have active partitions now return ErrorKind::HostUnreachable("host unreachable")

Rust 1.83 has dropped and with it comes new error kinds. We can classify host unreachable errors with their proper error type now.

This PR also fixes some clippy warnings from 1.83.

Fixes #169

brandonpike and others added 3 commits November 3, 2024 10:12
Instead of returning `ErrorKind::ConnectionRefused` for all deliver failures,
this commit associates partitions with the same error as a link not being found
-> host unreachable. The `ErrorKind` in this commit is Other, pending
`ErrorKind::HostUnreachable` stabilization.
Rust 1.83 has dropped and with it comes new error kinds!
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.

Network partition should cause 'host unreachable' not 'connection refused' for TCP
2 participants