diff options
| author | Treehugger Robot <treehugger-gerrit@google.com> | 2017-09-05 04:50:00 +0000 |
|---|---|---|
| committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2017-09-05 04:50:00 +0000 |
| commit | e477c862031613ca7bd05971bce05405638fb248 (patch) | |
| tree | 8d6ee6e3fd25fa17f91ad8b6ed8b20b160a49085 | |
| parent | a9ac3414a215e41ac2e5298d0de1c670b9f5936d (diff) | |
| parent | d1383bd268946d0c54e50e981b7d5c2c85509df4 (diff) | |
| download | platform_external_android-clat-e477c862031613ca7bd05971bce05405638fb248.tar.gz platform_external_android-clat-e477c862031613ca7bd05971bce05405638fb248.tar.bz2 platform_external_android-clat-e477c862031613ca7bd05971bce05405638fb248.zip | |
Merge "Increase the maximum exponential backoff for DNS64 queries."android-o-mr1-preview-2android-o-mr1-preview-1
| -rw-r--r-- | config.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -180,8 +180,11 @@ void dns64_detection(unsigned net_id) { logmsg(ANDROID_LOG_WARN, "dns64_detection -- error, sleeping for %d seconds", backoff_sleep); sleep(backoff_sleep); backoff_sleep *= 2; - if(backoff_sleep >= 120) { - backoff_sleep = 120; + if(backoff_sleep >= 1800) { + // Scale down to one DNS query per half hour. Unnecessary DNS queries waste power, and the + // benefit is minimal (basically, only limited to the case where a network goes from IPv6-only + // to IPv6 with NAT64). + backoff_sleep = 1800; } } } |
