Skip to content

fix: avoid panics by removing unwraps during HttpPeer DNS resolution#920

Open
rxdiscovery wants to merge 1 commit into
cloudflare:mainfrom
rxdiscovery:fix-dns-unwrap
Open

fix: avoid panics by removing unwraps during HttpPeer DNS resolution#920
rxdiscovery wants to merge 1 commit into
cloudflare:mainfrom
rxdiscovery:fix-dns-unwrap

Conversation

@rxdiscovery

@rxdiscovery rxdiscovery commented Jun 20, 2026

Copy link
Copy Markdown

refactor: make peer/health_check safe, update proxy trait, and hide server headers

  • Core/Load-Balancing: Removed panicking unwrap() calls in HttpPeer and HttpHealthCheck initializers. Their new() and new_mtls() functions now return Result<Self> instead of Self.
  • Tests: Adjusted test suites to align with the new method signatures and modified response behavior.

Closes #921

@rxdiscovery rxdiscovery changed the title fix: avoid panics by removing unwraps during DNS resolution and healt… fix: avoid panics by removing unwraps during HttpPeer DNS resolution and healt… Jun 20, 2026
@rxdiscovery rxdiscovery changed the title fix: avoid panics by removing unwraps during HttpPeer DNS resolution and healt… fix: avoid panics by removing unwraps during HttpPeer DNS resolution Jun 20, 2026
@drcaramelsyrup drcaramelsyrup self-requested a review June 26, 2026 17:22
@drcaramelsyrup drcaramelsyrup self-assigned this Jun 26, 2026
@drcaramelsyrup drcaramelsyrup added enhancement New feature or request ergonomics Ease of use, developer friendliness labels Jun 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request ergonomics Ease of use, developer friendliness

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Avoid panics by removing unwraps during HttpPeer and HttpHealthCheck initialization

2 participants