diff options
author | Lorenzo Colitti <lorenzo@google.com> | 2017-09-05 04:56:46 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2017-09-05 04:56:46 +0000 |
commit | 0ca87dfcd8255ac9d68c294ae43a1e13335dfb6f (patch) | |
tree | 8d6ee6e3fd25fa17f91ad8b6ed8b20b160a49085 | |
parent | 4475bff7d495c8ef240bd515cf7a430a95d9a0e9 (diff) | |
parent | e477c862031613ca7bd05971bce05405638fb248 (diff) | |
download | platform_external_android-clat-o-mr1-iot-preview-6.tar.gz platform_external_android-clat-o-mr1-iot-preview-6.tar.bz2 platform_external_android-clat-o-mr1-iot-preview-6.zip |
Merge "Increase the maximum exponential backoff for DNS64 queries."android-o-mr1-iot-preview-6o-mr1-iot-preview-6
am: e477c86203
Change-Id: I41f54d6b15bb958bb68f6bcdbb0fe63c20836a30
-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; } } } |