summaryrefslogtreecommitdiff
path: root/src/resolve/resolved-dns-transaction.h
diff options
context:
space:
mode:
authorDaniel Mack <daniel@zonque.org>2015-11-30 22:35:51 +0100
committerDaniel Mack <daniel@zonque.org>2015-12-08 16:51:41 +0100
commita9da14e1e97ff774761966c2e1d83b0c6750b367 (patch)
tree7899b5f7aa5495e154366adcd2cb109e3b59f3f0 /src/resolve/resolved-dns-transaction.h
parent1effe9656899c4e4976d4d44f9bde634715daca2 (diff)
resolved: add 'next_attempt_after' field to DnsTransaction
For each transaction, record when the earliest point in time when the query packet may hit the wire. This is the same time stamp for which the timer is scheduled in retries, except for the initial query packets which are delayed by a random jitter. In this case, we denote that the packet may actually be sent at the nominal time, without the jitter. Transactions that share the same timestamp will also have identical values in this field. It is used to coalesce pending queries in a later patch.
Diffstat (limited to 'src/resolve/resolved-dns-transaction.h')
-rw-r--r--src/resolve/resolved-dns-transaction.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/resolve/resolved-dns-transaction.h b/src/resolve/resolved-dns-transaction.h
index e3d4b861be..af08b20e44 100644
--- a/src/resolve/resolved-dns-transaction.h
+++ b/src/resolve/resolved-dns-transaction.h
@@ -73,6 +73,7 @@ struct DnsTransaction {
bool answer_authenticated;
usec_t start_usec;
+ usec_t next_attempt_after;
sd_event_source *timeout_event_source;
unsigned n_attempts;