mirror of
https://github.com/hickory-dns/hickory-dns.git
synced 2026-04-25 03:05:51 +03:00
[PR #497] [MERGED] improve truncation to always return records #1483
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#1483
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/497
Author: @bluejekyll
Created: 5/28/2018
Status: ✅ Merged
Merged: 6/6/2018
Merged by: @bluejekyll
Base:
master← Head:better-truncation📝 Commits (6)
3f9f827improve truncation to always return recordsb17ef45refactor authority/catelog to return iteratorseb6ce11cleanup LookupRecords constructionc4bcedcclean up docs1535204add large recordset truncation teste3130bcdedup message serialization📊 Changes
26 files changed (+1590 additions, -1205 deletions)
View changed files
📝
client/src/rr/dnssec/signer.rs(+27 -34)📝
integration-tests/src/lib.rs(+5 -4)📝
integration-tests/tests/authority_tests.rs(+385 -447)📝
integration-tests/tests/catalog_tests.rs(+10 -35)📝
proto/src/error.rs(+8 -0)📝
proto/src/op/header.rs(+2 -20)📝
proto/src/op/message.rs(+152 -124)📝
proto/src/op/mod.rs(+1 -1)📝
proto/src/rr/dnssec/tbs.rs(+5 -5)📝
proto/src/rr/dnssec/verifier.rs(+4 -4)📝
proto/src/rr/mod.rs(+1 -0)📝
proto/src/rr/resource.rs(+36 -24)📝
proto/src/rr/rr_set.rs(+224 -77)📝
proto/src/serialize/binary/encoder.rs(+88 -35)📝
proto/src/xfer/dns_future.rs(+36 -18)📝
proto/src/xfer/dns_request.rs(+5 -0)📝
server/src/authority/auth_lookup.rs(+39 -32)📝
server/src/authority/authority.rs(+268 -112)📝
server/src/authority/catalog.rs(+29 -37)📝
server/src/authority/message_request.rs(+32 -35)...and 6 more files
📄 Description
This adds the ability to set rollback points during serialization of the Message. This was pulled out of the #492 change, but is narrower. I need to add some tests for this case. The goal is that if we can't return all records, at least the set that could be written to the buffer are sent.
This went beyond the original scope a little bit to prepare for #492, by switching out temporary vectors during lookups for custom Iterator combinators.
Fixes: #319
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.