Skip to content

Run custom DNS A and AAAA lookups in parallel#614

Merged
ryanfowler merged 1 commit into
mainfrom
fix-serial-dns-lookups
May 27, 2026
Merged

Run custom DNS A and AAAA lookups in parallel#614
ryanfowler merged 1 commit into
mainfrom
fix-serial-dns-lookups

Conversation

@ryanfowler
Copy link
Copy Markdown
Owner

Summary

  • Run UDP A and AAAA lookups concurrently with tokio::join! while keeping the existing “return any successful records” behavior.
  • Reuse one reqwest::Client for both DoH queries so the two families start together without rebuilding the client twice.
  • Add timing-focused unit tests for delayed A/AAAA responses in both UDP and DoH paths, plus an integration timeout check.
  • Preserve the existing request-timeout error shape when DNS timeouts race the outer request budget.

Testing

  • cargo fmt
  • cargo clippy --locked --all-targets --all-features -- -D warnings
  • cargo test --all-features

@ryanfowler ryanfowler enabled auto-merge May 27, 2026 04:48
@ryanfowler ryanfowler merged commit 4402523 into main May 27, 2026
4 checks passed
@ryanfowler ryanfowler deleted the fix-serial-dns-lookups branch May 27, 2026 04:49
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.

1 participant