summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-01-08 17:16:32 +0100
committerLennart Poettering <lennart@poettering.net>2016-01-11 19:40:00 +0100
commitf757cd851086843d6f899269e5633d1b20d4acaa (patch)
treee5b6f197ed8b8927687ec24dbb17b09da0e869c5
parent91adc4db33f69606aabd332813a5d7d5751c859f (diff)
resolved: log about truncated replies before trying again, not after
-rw-r--r--src/resolve/resolved-dns-transaction.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resolve/resolved-dns-transaction.c b/src/resolve/resolved-dns-transaction.c
index ce02a3b6d0..b9a1eaff19 100644
--- a/src/resolve/resolved-dns-transaction.c
+++ b/src/resolve/resolved-dns-transaction.c
@@ -692,6 +692,8 @@ void dns_transaction_process_reply(DnsTransaction *t, DnsPacket *p) {
return;
}
+ log_debug("Reply truncated, retrying via TCP.");
+
/* Response was truncated, let's try again with good old TCP */
r = dns_transaction_open_tcp(t);
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 */
dns_transaction_retry(t);
- return;
}
- log_debug("Reply truncated, retrying via TCP.");
return;
}