summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-12-18 14:26:48 +0100
committerLennart Poettering <lennart@poettering.net>2015-12-18 14:48:49 +0100
commit423659abb8e5ff7b43fc458ab0436074f89f03b1 (patch)
treee7f7720afbb8818e25f5e9ed96303b3c1b314ffb
parentf4e380379a34d27c9950cb8c91548a798eafe9f3 (diff)
resolved: stop timeout timer when validating transactions
We need no separate timeout anymore as soon as we received a reply, as the auxiliary transactions have their own timeouts.
-rw-r--r--src/resolve/resolved-dns-transaction.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/resolve/resolved-dns-transaction.c b/src/resolve/resolved-dns-transaction.c
index f341819127..e65593e143 100644
--- a/src/resolve/resolved-dns-transaction.c
+++ b/src/resolve/resolved-dns-transaction.c
@@ -659,6 +659,7 @@ void dns_transaction_process_reply(DnsTransaction *t, DnsPacket *p) {
if (r > 0) {
/* There are DNSSEC transactions pending now. Update the state accordingly. */
t->state = DNS_TRANSACTION_VALIDATING;
+ dns_transaction_stop(t);
return;
}
}
@@ -748,6 +749,8 @@ static int on_transaction_timeout(sd_event_source *s, usec_t usec, void *userdat
t->initial_jitter_elapsed = true;
}
+ log_debug("Timeout reached on transaction %" PRIu16 ".", t->id);
+
/* ...and try again with a new server */
dns_transaction_next_dns_server(t);