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 1 commit into
base: main
Choose a base branch
from

Conversation

brandonpike
Copy link
Contributor

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

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

We use ErrorKind::Other in this commit while ErrorKind::HostUnreachable is pending stabilization. (rust-lang/rust#86442). Note: stabilization is scheduled for 1.83.0 on November 28, 2024

Fixes #169

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.
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
1 participant