summaryrefslogtreecommitdiff
path: root/scripts/payload_info_unittest.py
diff options
context:
space:
mode:
authorXiaochu Liu <xiaochu@chromium.org>2019-07-11 09:51:06 -0700
committerCommit Bot <commit-bot@chromium.org>2019-07-19 20:13:40 +0000
commitb5ba797ba9ee97130d56f1457ba239721d5b8177 (patch)
treeaeee8fbf90e9e7044284a16cbdf08152f36fe710 /scripts/payload_info_unittest.py
parentba2fdce6739b74c4150ef365e8e7af9c78d5b8a6 (diff)
update_engine: call res_init and retry one extra time on unresolved host
libcurl error Based on https://curl.haxx.se/docs/todo.html#updated_DNS_server_while_running: "If /etc/resolv.conf gets updated while a program using libcurl is running, it may cause name resolves to fail unless res_init() is called. We should consider calling res_init() + retry once unconditionally on all name resolve failures to mitigate against this." This CL added following behavior: On libcurl returns CURLE_COULDNT_RESOLVE_HOST error code: 1. we increase the max retry count by 1 for the first time it happens in the lifetime of an LibcurlHttpFetcher object. 2. we call res_init unconditionally. We also add UMA metrics to measure whether calling res_init helps mitigate the unresolved host problem. WIP CL: https://chromium-review.googlesource.com/c/chromium/src/+/1698722 BUG=chromium:982813 TEST=FEATURES="test" emerge-kefka update_engine, tested on a device Change-Id: Ia894eae93b3a0adbac1a831e657b75cba835dfa0
Diffstat (limited to 'scripts/payload_info_unittest.py')
0 files changed, 0 insertions, 0 deletions