diff options
author | Remi NGUYEN VAN <reminv@google.com> | 2020-06-09 11:27:15 +0000 |
---|---|---|
committer | Remi NGUYEN VAN <reminv@google.com> | 2020-06-09 12:31:46 +0000 |
commit | 9572aa10c28501350350251525eed07408c3b849 (patch) | |
tree | de63d61f21e7b7f9756df64c93253c3352e891d0 /src/android/net/util/NetworkStackUtils.java | |
parent | 976a9509ab562330f03f419a13a5bc0ba0913398 (diff) |
Do not revalidate before network is ready
ConnectivityService sends notifyLinkPropertiesChanged before
notifyNetworkConnected. When a captive portal URL is present, this
causes NetworkMonitor to revalidate, even though the network is not
ready to start validating (DNS servers have not been set yet in
particular). ConnectivityService does this because the sending new
LinkProperties to NetworkMonitor is part of the standard LinkProperties
update flow; NetworkMonitor should be resilient to such behavior.
Test: atest NetworkMonitorTest, manual (flashed, wifi working)
Bug: 156697983
Original-Change: https://android-review.googlesource.com/1315220
Merged-In: I0619d37a3374726b77e162d174c5b12659db3bbb
Change-Id: I0619d37a3374726b77e162d174c5b12659db3bbb
Diffstat (limited to 'src/android/net/util/NetworkStackUtils.java')
0 files changed, 0 insertions, 0 deletions