OSDN Git Service

DO NOT MERGE NetworkMonitor: send one DNS probe per web probe
authorHugo Benichi <hugobenichi@google.com>
Wed, 16 Nov 2016 09:18:08 +0000 (18:18 +0900)
committerHugo Benichi <hugobenichi@google.com>
Fri, 9 Dec 2016 07:14:47 +0000 (16:14 +0900)
commiteb5e9aa2cea166455f4f157cf550e44626ede204
tree35ff9163c363954d88f0f3025dba0699736f6cf7
parentdd22982e250d1758098a88f00e607a464928ae5a
DO NOT MERGE 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: Ic83c3f8f46d32269bca1b90ae192ef648d5df6c3
services/core/java/com/android/server/connectivity/NetworkMonitor.java