]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
resolved: transaction - increase number of retry attempts 841/head
authorTom Gundersen <teg@jklm.no>
Mon, 3 Aug 2015 12:25:49 +0000 (14:25 +0200)
committerTom Gundersen <teg@jklm.no>
Mon, 3 Aug 2015 12:25:49 +0000 (14:25 +0200)
With the exponential backoff, we can perform more requests in the same amount of time,
so bump this a bit.

In case of large RTT this may be necessary in order not to regress, and in case
of large packet-loss it will make us more robust. The latter is particularly
relevant once we start probing for features (and hence may see packet-loss
until we settle on the right feature level).

src/resolve/resolved-dns-transaction.h

index 007f7e5959e3c588af8f1b67fa27f46d932d0e54..d8a564760919669560eb5a97320cff060e5a7e9e 100644 (file)
@@ -100,7 +100,7 @@ DnsTransactionState dns_transaction_state_from_string(const char *s) _pure_;
 #define LLMNR_JITTER_INTERVAL_USEC (100 * USEC_PER_MSEC)
 
 /* Maximum attempts to send DNS requests, across all DNS servers */
-#define DNS_TRANSACTION_ATTEMPTS_MAX 8
+#define DNS_TRANSACTION_ATTEMPTS_MAX 16
 
 /* Maximum attempts to send LLMNR requests, see RFC 4795 Section 2.7 */
 #define LLMNR_TRANSACTION_ATTEMPTS_MAX 3