mirror of
https://github.com/hickory-dns/hickory-dns.git
synced 2026-04-25 11:15:54 +03:00
[GH-ISSUE #1097] Too many open files (os error 24) using multiple resolver instances #604
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#604
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 @Edu4rdSHL on GitHub (May 6, 2020).
Original GitHub issue: https://github.com/hickory-dns/hickory-dns/issues/1097
Describe the bug
I'm having the problem
Too many open fileswhen creating a resolver from parts using https://docs.rs/trust-dns-resolver/0.19.5/trust_dns_resolver/struct.Resolver.html. I'm sing the following code:To Reproduce
I call the get_resolver() function everytime I need to do a lookup. The idea is mainly that we use a list of resolver IPs and they are picked randomly.
I suspect that the problem is the
Resolver::new,ResolverConfig::from_partsand
NameServerConfigGroup::from_ips_clearcalls everytime. Is there an option to just change the resolver IP? That will avoid the need to create a new resolver everytime but just use references.Expected behavior
No
Too many open files (os error 24)error.System:
Version:
Crate: Resolver
Version: 0.19.5
Additional context
The number of resolvers created are up to 500.
@bluejekyll commented on GitHub (May 6, 2020):
Is the Resolver being dropped (either directly or by going out of scope) between each call of get_resolver?
@Edu4rdSHL commented on GitHub (May 6, 2020):
Hey @bluejekyll, thank you for your quick response. This was just a problem with the OS configuration having a very low number of open files limit.
Closing and sorry.