diff options
| author | Lorenzo Colitti <lorenzo@google.com> | 2017-09-05 05:16:18 +0000 |
|---|---|---|
| committer | android-build-merger <android-build-merger@google.com> | 2017-09-05 05:16:18 +0000 |
| commit | a294ae3d3fb44895087b15a873c3428fa18d943f (patch) | |
| tree | 8d6ee6e3fd25fa17f91ad8b6ed8b20b160a49085 | |
| parent | ad146e6aa3410935caca92678f4a190656c8114a (diff) | |
| parent | 65f4d21210b88c504493053b3cbe389bd8f5a3b4 (diff) | |
| download | platform_external_android-clat-a294ae3d3fb44895087b15a873c3428fa18d943f.tar.gz platform_external_android-clat-a294ae3d3fb44895087b15a873c3428fa18d943f.tar.bz2 platform_external_android-clat-a294ae3d3fb44895087b15a873c3428fa18d943f.zip | |
Merge "Increase the maximum exponential backoff for DNS64 queries." am: e477c86203 am: 0ca87dfcd8
am: 65f4d21210
Change-Id: I968b624584cd15292e876e22a5486195421314e4
| -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; } } } |
