OSDN Git Service

Retry captiveportal check even if only one addr
authorRobert Greenwalt <rgreenwalt@google.com>
Tue, 15 Oct 2013 01:03:02 +0000 (18:03 -0700)
committerRobert Greenwalt <rgreenwalt@google.com>
Tue, 15 Oct 2013 19:43:30 +0000 (12:43 -0700)
commitb9acff3707ce15999ef154b5457e8a7efb73cbf4
tree67412a5ab0eb6e2746c5f1b5f19cdd26c8432fe5
parent3fd9cb155c2b4c28eed9cd886a3dfb01854f477b
Retry captiveportal check even if only one addr

We're getting some false positive results on this check and
while it was coded to try 3 times given sufficient independent addrs
the default url resolves to a single address so we'd just try once.

Rework to try again even with fewer urls to try to reduce the false
positives.

Also adds a random query param to fool proxies into not caching.

bug:9972012
Change-Id: Ib719f40ec612065ca6bcd919549fc1164506d35a
services/java/com/android/server/ConnectivityService.java