resolved: add 'next_attempt_after' field to DnsTransaction
authorDaniel Mack <daniel@zonque.org>
Mon, 30 Nov 2015 21:35:51 +0000 (22:35 +0100)
committerDaniel Mack <daniel@zonque.org>
Tue, 8 Dec 2015 15:51:41 +0000 (16:51 +0100)
commita9da14e1e97ff774761966c2e1d83b0c6750b367
tree7899b5f7aa5495e154366adcd2cb109e3b59f3f0
parent1effe9656899c4e4976d4d44f9bde634715daca2
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.
src/resolve/resolved-dns-transaction.c
src/resolve/resolved-dns-transaction.h