resolved: log about truncated replies before trying again, not after
This commit is contained in:
parent
91adc4db33
commit
f757cd8510
|
@ -692,6 +692,8 @@ void dns_transaction_process_reply(DnsTransaction *t, DnsPacket *p) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
log_debug("Reply truncated, retrying via TCP.");
|
||||||
|
|
||||||
/* Response was truncated, let's try again with good old TCP */
|
/* Response was truncated, let's try again with good old TCP */
|
||||||
r = dns_transaction_open_tcp(t);
|
r = dns_transaction_open_tcp(t);
|
||||||
if (r == -ESRCH) {
|
if (r == -ESRCH) {
|
||||||
|
@ -714,10 +716,8 @@ void dns_transaction_process_reply(DnsTransaction *t, DnsPacket *p) {
|
||||||
|
|
||||||
/* On DNS, couldn't send? Try immediately again, with a new server */
|
/* On DNS, couldn't send? Try immediately again, with a new server */
|
||||||
dns_transaction_retry(t);
|
dns_transaction_retry(t);
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
log_debug("Reply truncated, retrying via TCP.");
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue