mirror of
https://github.com/hickory-dns/hickory-dns.git
synced 2026-04-25 19:25:56 +03:00
[GH-ISSUE #1176] ResolverOpts::attempts is actually number of re-try attempts #621
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#621
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 @lukaspustina on GitHub (Jul 28, 2020).
Original GitHub issue: https://github.com/hickory-dns/hickory-dns/issues/1176
Describe the bug
I'm not sure if this is really a bug, but IMHO the documentation of
ResolverOptssuggests a different meaning of the fieldattempts:retry_dns_handle.rs:74To Reproduce
Count the amount of UDP packets sent with Wireshark or tcpdump. But it's actually in the code.
Expected behavior
From the documentation I expected to see up to
ResolverOpts::attemptspackets.Version:
Crate: resolver
Version: 0.19.5
@bluejekyll commented on GitHub (Aug 4, 2020):
Interesting, seems like a poor interpretation of what that value means! Yes, I would expect that is being more used as a retry counter rather than more strictly as the total number of attempts, including the first request.
I suppose we can either fix the code to use this and include the first attempts as well?
@lukaspustina commented on GitHub (Aug 4, 2020):
I don't mind either fix. I guess, it's easier and friendlier to current users of the crate to just clarify the documentation since a re-interpretation in the code could possibly brake existing usage of the parameter.
@bluejekyll commented on GitHub (Aug 4, 2020):
agreed. If you'd like to submit a PR with the documentation updated, that would be really helpful!
@lukaspustina commented on GitHub (Aug 5, 2020):
@bluejekyll: Done.
@bluejekyll commented on GitHub (Aug 7, 2020):
Fixed in #1180