[GH-ISSUE #186] [Resolver] make UDP be preferred over TCP #88

Closed
opened 2026-03-07 22:18:43 +03:00 by kerem · 2 comments
Owner

Originally created by @bluejekyll on GitHub (Sep 13, 2017).
Original GitHub issue: https://github.com/hickory-dns/hickory-dns/issues/186

Today UDP and TCP streams are given the same weight in the pool.

see #185 for discussion

see also #178 for promotion to TCP on Truncation

Originally created by @bluejekyll on GitHub (Sep 13, 2017). Original GitHub issue: https://github.com/hickory-dns/hickory-dns/issues/186 Today UDP and TCP streams are given the same weight in the pool. see #185 for discussion see also #178 for promotion to TCP on Truncation
kerem 2026-03-07 22:18:43 +03:00
Author
Owner

@bluejekyll commented on GitHub (Sep 13, 2017):

Ok, I've decide the path forward is to split the NameServerPool into two, one for Datagram and one for Stream oriented connections. We'll query the datagram pool first, if there are no available Nameservers, then we'll query the Stream oriented pool. It will also give us the ability to easily specify that we want to promote a query to TCP in the event of truncation. I'll look at patching this in the next few days.

<!-- gh-comment-id:329230235 --> @bluejekyll commented on GitHub (Sep 13, 2017): Ok, I've decide the path forward is to split the NameServerPool into two, one for Datagram and one for Stream oriented connections. We'll query the datagram pool first, if there are no available Nameservers, then we'll query the Stream oriented pool. It will also give us the ability to easily specify that we want to promote a query to TCP in the event of truncation. I'll look at patching this in the next few days.
Author
Owner

@bluejekyll commented on GitHub (Sep 20, 2017):

This was fixed in #189

<!-- gh-comment-id:331004928 --> @bluejekyll commented on GitHub (Sep 20, 2017): This was fixed in #189
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#88
No description provided.