summaryrefslogtreecommitdiff
path: root/api/coverage/tools
diff options
context:
space:
mode:
author lucaslin <lucaslin@google.com> 2023-01-06 08:03:31 +0000
committer Hansen Kurli <hkurli@google.com> 2023-11-16 06:15:29 +0000
commit42d38ded1ee54607aedac8465045b0a8f88094ec (patch)
tree41e62ad4fc130f21a5142896a975e77ff6f91b95 /api/coverage/tools
parent3b84c2ca315399696f2aab72ee9221d838923c9c (diff)
Clear the VPN network preference when error happens
This commit does - Clear the VPN network preference before the Ikev2VpnRunner becomes stale. - Clear the VPN network preference when the retry delay is higher than 5s. The clean work is not suitable for NETWORK_LOST error since there might be a window when the underlying network is back but the VPN is not connected yet. So keep the rule when the underlying network is lost. - Reset the VPN network preference when starting a new IKE session. The rule might be set twice(One is in the constructor, and the other is in startOrMigrateIkeSession()) when the IKEv2 VPN is the first time launched. There is no harm since ConnectivityService will always clear the old rule first then adding the new rule, which means it's ok for the caller to set the same rule multiple times and ConnectivityService can handle it well. Bug: 231749077 Test: atest FrameworksNetTests Change-Id: I2664b5fb4151e12d2531e950885bcb18e46b23c6
Diffstat (limited to 'api/coverage/tools')
0 files changed, 0 insertions, 0 deletions