mirror of
https://github.com/hickory-dns/hickory-dns.git
synced 2026-04-25 03:05:51 +03:00
[PR #3328] [MERGED] Deduplicate name server connections in the recursor #3749
Labels
No labels
blocked
breaking-change
bug
bug:critical
bug:tests
cleanup
compliance
compliance
compliance
crate:all
crate:client
crate:native-tls
crate:proto
crate:recursor
crate:resolver
crate:resolver
crate:rustls
crate:server
crate:util
dependencies
docs
duplicate
easy
easy
enhance
enhance
enhance
feature:dns-over-https
feature:dns-over-quic
feature:dns-over-tls
feature:dnsssec
feature:global_lb
feature:mdns
feature:tsig
features:edns
has workaround
ops
perf
platform:WASM
platform:android
platform:fuchsia
platform:linux
platform:macos
platform:windows
pull-request
question
test
tools
tools
trust
unclear
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hickory-dns#3749
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/hickory-dns/hickory-dns/pull/3328
Author: @marcus0x62
Created: 10/23/2025
Status: ✅ Merged
Merged: 10/28/2025
Merged by: @marcus0x62
Base:
main← Head:dedup-name-server-conns📝 Commits (8)
73a3676recursor: move Mock test harness to test-supportc6cec99recursor: unit test for NS connection deduplication5ab0b98recursor: reuse NameServer objects among NameServerPoolsa1d98ferecursor: rename RecursorCacheMetrics to RecursorMetrics586c1e6recursor: move SharedLookup from RecursorPool to resolver DnsHandledcc69efrecursor: move metrics from RecursorPool to RecursorDnsHandle41d294drecursor: move lookups from RecursorPool to RecursorDnsHandle198af38recursor: remove RecursorPool📊 Changes
11 files changed (+915 additions, -565 deletions)
View changed files
📝
Cargo.lock(+5 -0)📝
crates/recursor/src/lib.rs(+2 -1)📝
crates/recursor/src/metrics_tests.rs(+28 -381)📝
crates/recursor/src/recursor.rs(+4 -4)📝
crates/recursor/src/recursor_dns_handle.rs(+91 -43)➖
crates/recursor/src/recursor_pool.rs(+0 -128)➕
crates/recursor/src/tests.rs(+162 -0)📝
crates/resolver/src/name_server_pool.rs(+71 -8)➕
crates/resolver/tests/tests.rs(+85 -0)📝
tests/test-support/Cargo.toml(+5 -0)📝
tests/test-support/src/lib.rs(+462 -0)📄 Description
This deduplicates TCP connections in the recursor (#2738) and removes the RecursorPool abstraction. In eliminating the RecursorPool, it also address #3198.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.