OSDN Git Service

NetworkMonitor: send one DNS probe per web probe
authorHugo Benichi <hugobenichi@google.com>
Wed, 16 Nov 2016 09:18:08 +0000 (18:18 +0900)
committerLorenzo Colitti <lorenzo@google.com>
Thu, 26 Jan 2017 09:52:28 +0000 (18:52 +0900)
commita19056c35d16ddb5a6c1d3343729701b8939f1e1
tree29e05bbba1ac962bae260c4db682ee7dbaf6e408
parentc328248cdc5e6a89a1742775f1de855f04a71913
NetworkMonitor: send one DNS probe per web probe

This patch changes sligthly the two web probes mechanism for captive
portal detection and network validation so that DNS resolution is always
done for both probes.

In general the target web servers of the two parallel HTTP and HTTPS probes
are now different. This introduces a bias in the latency measurement of
th HTTPS probe since this latency will also include DNS resolution in
general.

Test: manual verification + $ runtest frameworks-net
Bug: 32198726

(cherry picked from commit ab61e7c324b24e46829495bc2597e42ea907c53d)

Change-Id: I3b32ae451f2241849fffe24956758a9f571b1ef1
services/core/java/com/android/server/connectivity/NetworkMonitor.java