summaryrefslogtreecommitdiff
path: root/tests/common/java/android/net/NetworkCapabilitiesTest.java
diff options
context:
space:
mode:
authorSudheer Shanka <sudheersai@google.com>2022-07-11 18:07:47 +0000
committerSudheer Shanka <sudheersai@google.com>2022-07-18 21:15:53 +0000
commit2790990866b2171b3762ba499657824d8a314012 (patch)
tree7535c0cc1ac40f2a2a9c5618c0cf9b63f21d6e01 /tests/common/java/android/net/NetworkCapabilitiesTest.java
parentfac4f05be7032c5983b427ab0d5edba3fce70b4b (diff)
Clear DNS cache after every network access.
If the app tries to make a network connection in the foreground immediately after trying to do the same when it's network access was blocked, it could receive a UnknownHostException due to the cached DNS entry. So, clear the dns cache after every network access for now until we have a fix on the platform side. Bug: 237549250 Bug: 238064333 Bug: 237556596 Bug: 238962235 Bug: 238833668 Bug: 239262832 Test: atest ./tests/cts/hostside/src/com/android/cts/net/HostsideRestrictBackgroundNetworkTests.java Ignore-AOSP-First: Will be cherrypicked to aosp later Change-Id: Ic603b1bd9da24ee3724054c4a91794ee569e97f6
Diffstat (limited to 'tests/common/java/android/net/NetworkCapabilitiesTest.java')
0 files changed, 0 insertions, 0 deletions