mirror of
https://github.com/hickory-dns/hickory-dns.git
synced 2026-04-25 11:15:54 +03:00
[PR #3251] [MERGED] proto: clean up ProtoError #3684
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#3684
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/3251
Author: @djc
Created: 9/3/2025
Status: ✅ Merged
Merged: 9/4/2025
Merged by: @djc
Base:
main← Head:dns-error📝 Commits (10+)
8bc0189proto: extract DnsError from ProtoError4317ff5Move ProtoErrorKind::BadQueryCount to LookupError582ec8dproto: remove unused ProtoErrorKind::Canceled8e89f85proto: avoid duplicating DecodeError variants69b001dproto: move DnsKeyProtocolNot3 into DecodeError3cfd675proto: move EdnsNameNotRoot into DecodeError4458d3aproto: move IncorrectRDataLengthRead into DecodeErrorb963376Move ProtoErrorKind::MaxRecordLimitExceeded into recursor::Error2b7bc83proto: move UnknownAlgorithmTypeValue into DecodeErrore99b734proto: move UnknownDigestTypeValue into DecodeError📊 Changes
59 files changed (+742 additions, -882 deletions)
View changed files
📝
bin/benches/comparison_benches.rs(+5 -9)📝
bin/src/lib.rs(+4 -6)📝
crates/client/src/client/client.rs(+8 -11)📝
crates/client/src/client/dnssec_client.rs(+9 -12)📝
crates/proto/src/dnssec/crypto.rs(+16 -10)📝
crates/proto/src/dnssec/handle.rs(+6 -6)📝
crates/proto/src/dnssec/nsec3.rs(+16 -12)📝
crates/proto/src/dnssec/rdata/cdnskey.rs(+5 -3)📝
crates/proto/src/dnssec/rdata/dnskey.rs(+5 -4)📝
crates/proto/src/dnssec/rdata/nsec3.rs(+3 -3)📝
crates/proto/src/dnssec/rdata/nsec3param.rs(+4 -4)📝
crates/proto/src/error.rs(+229 -539)📝
crates/proto/src/h2/h2_client_stream.rs(+16 -12)📝
crates/proto/src/h3/h3_client_stream.rs(+12 -6)📝
crates/proto/src/lib.rs(+1 -1)📝
crates/proto/src/quic/quic_client_stream.rs(+11 -6)📝
crates/proto/src/rr/dns_class.rs(+8 -5)📝
crates/proto/src/rr/domain/label.rs(+5 -4)📝
crates/proto/src/rr/domain/name.rs(+11 -11)📝
crates/proto/src/rr/rdata/csync.rs(+1 -1)...and 39 more files
📄 Description
An attempt to clean up the pile of stuff in
ProtoError/ProtoErrorKind, in preparation forI think being more intentional about our error types will improve correctness (as seen in the first commit, where some dubious code in the resolver becomes more correct).
I moved a bunch of stuff into
DecodeErrorand later noticed we also haveParseError. I think some of the variants I moved intoDecodeErrormight actually belong inParseErrorbut that seems lower priority since it doesn't affect the proto crate split.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.