mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-13 14:30:03 -04:00
Skip EDNS UDP-size hint on TCP retries
The hint feeds the EDNS OPT UDP-size field, which has no effect on TCP transport. Avoid the dns_adb_getudpsize() lookup when the query is already pinned to TCP. Assisted-by: Claude:claude-opus-4-7
This commit is contained in:
parent
db28b2127a
commit
08295d004e
1 changed files with 3 additions and 1 deletions
|
|
@ -2571,7 +2571,9 @@ resquery_send(resquery_t *query) {
|
|||
query->options |= DNS_FETCHOPT_NOEDNS0;
|
||||
}
|
||||
|
||||
if (fctx->timeout && (query->options & DNS_FETCHOPT_NOEDNS0) == 0) {
|
||||
if (fctx->timeout && (query->options & DNS_FETCHOPT_NOEDNS0) == 0 &&
|
||||
(query->options & DNS_FETCHOPT_TCP) == 0)
|
||||
{
|
||||
isc_sockaddr_t *sockaddr = &query->addrinfo->sockaddr;
|
||||
struct tried *tried = triededns(fctx, sockaddr);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue