[GH-ISSUE #3198] Deduplicate concurrent queries in Resolver #1151

Closed
opened 2026-03-16 01:44:38 +03:00 by kerem · 1 comment
Owner

Originally created by @divergentdave on GitHub (Aug 12, 2025).
Original GitHub issue: https://github.com/hickory-dns/hickory-dns/issues/3198

We got a report that making a very large number of concurrent queries when using reqwest with Hickory DNS enabled may result in FD exhaustion during DNS resolution. Currently, we deduplicate concurrent requests in RecursorPool and MemoizeClientHandle (see also #3119). However reqwest uses TokioResolver, which just has a cache in CachingClient, but does not deduplicate identical concurrent queries. We should apply a similar solution to this API.

Originally created by @divergentdave on GitHub (Aug 12, 2025). Original GitHub issue: https://github.com/hickory-dns/hickory-dns/issues/3198 We got a report that making a very large number of concurrent queries when using `reqwest` with Hickory DNS enabled may result in FD exhaustion during DNS resolution. Currently, we deduplicate concurrent requests in `RecursorPool` and `MemoizeClientHandle` (see also #3119). However `reqwest` uses `TokioResolver`, which just has a cache in `CachingClient`, but does not deduplicate identical concurrent queries. We should apply a similar solution to this API.
kerem closed this issue 2026-03-16 01:44:43 +03:00
Author
Owner

@marcus0x62 commented on GitHub (Oct 29, 2025):

Addressed in #3328

<!-- gh-comment-id:3463707145 --> @marcus0x62 commented on GitHub (Oct 29, 2025): Addressed in #3328
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hickory-dns#1151
No description provided.