mirror of
https://github.com/hickory-dns/hickory-dns.git
synced 2026-04-25 11:15:54 +03:00
[PR #1225] [MERGED] Dns response future #2104
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#2104
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/1225
Author: @djc
Created: 9/30/2020
Status: ✅ Merged
Merged: 10/1/2020
Merged by: @bluejekyll
Base:
main← Head:dns-response-future📝 Commits (6)
e288c8bintroduce simple DnsResponseFuture enum3dd9aaeremove response future type parameter where possibledf14503flatten unnecessary enumsdaf2e5fremove remnants of UdpResponse type926c257remove remnants of DnsMultiplexerSerialResponse type4ce86b2remove now unnecessary method error_response() from DnsRequestSender📊 Changes
26 files changed (+328 additions, -657 deletions)
View changed files
📝
bin/benches/comparison_benches.rs(+2 -3)📝
bin/tests/named_test_rsa_dnssec.rs(+2 -5)📝
bin/tests/server_harness/mod.rs(+9 -17)📝
crates/client/src/client/async_client.rs(+19 -41)📝
crates/client/src/client/async_secure_client.rs(+22 -39)📝
crates/client/src/client/client.rs(+3 -3)📝
crates/client/src/client/client_connection.rs(+2 -7)📝
crates/client/src/https_client_connection.rs(+0 -2)📝
crates/client/src/multicast/mdns_client_connection.rs(+1 -2)📝
crates/client/src/tcp/tcp_client_connection.rs(+1 -2)📝
crates/client/src/udp/udp_client_connection.rs(+0 -2)📝
crates/https/src/https_client_stream.rs(+10 -12)📝
crates/proto/src/udp/mod.rs(+1 -1)📝
crates/proto/src/udp/udp_client_stream.rs(+66 -136)📝
crates/proto/src/xfer/dns_exchange.rs(+52 -80)📝
crates/proto/src/xfer/dns_multiplexer.rs(+9 -71)📝
crates/proto/src/xfer/dns_response.rs(+70 -0)📝
crates/proto/src/xfer/mod.rs(+33 -94)📝
crates/resolver/src/https.rs(+2 -4)📝
crates/resolver/src/name_server/connection_provider.rs(+12 -108)...and 6 more files
📄 Description
This PR introduces a simple concrete
enum DnsResponseFutureto replace the widespread abstraction over just a few implementations of that type. I've made this into separate commits so it's hopefully a bit easier to review, but this seems like a nice way to make the code less abstract and easier to follow (and feel free to squash the changes if you prefer, of course).🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
no-stdsupport for hickory-proto #2813