mirror of
https://github.com/hickory-dns/hickory-dns.git
synced 2026-04-25 03:05:51 +03:00
[GH-ISSUE #1866] Iterator size hints #797
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#797
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?
Originally created by @mattfbacon on GitHub (Dec 22, 2022).
Original GitHub issue: https://github.com/hickory-dns/hickory-dns/issues/1866
This crate includes some iterators. It would be nice if those iterators had proper size hints.
@djc commented on GitHub (Dec 22, 2022):
Pull requests welcome!
@mattfbacon commented on GitHub (Dec 30, 2022):
OK, I will look into it
@mattfbacon commented on GitHub (Dec 30, 2022):
I'm looking at the RrsigsByAlgorithms iterator implementation, specifically this part:
github.com/bluejekyll/trust-dns@249fb26608/crates/proto/src/rr/rr_set.rs (L560-L576)What is this meant to do? As far as I can tell it will yield one item at most.
@bluejekyll commented on GitHub (Dec 31, 2022):
This creates an iterator limiting the RRSIG responses to hash algorithms the client understands and then reduces that to the strongest algorithm understood. That only happens if the client sends supported algorithms, otherwise it sends them all.
@mattfbacon commented on GitHub (Dec 31, 2022):
Ok so it will just yield 0 or 1 items in that case
@bluejekyll commented on GitHub (Dec 31, 2022):
Well, 0, 1 or the number of RRSIGs by Algorithms (up to something like 4 or 5).