Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 4d11ec98 authored by Chiachang Wang's avatar Chiachang Wang
Browse files

Move captive portal detection to another thread

isCaptivePortal() could take up to a minute. Resolving the
server's IP addresses could hit the DNS timeout, and attempting
connections to each of the server's several IP addresses
(currently one IPv4 and IPv6) could each take SOCKET_TIMEOUT_MS.
During this time this StateMachine will be unresponsive. Thus,
move detection to another thread.

Test: - runtest frameworks-net
      - run cts -m CtsNetTestCases
        -t android.net.cts.ConnectivityManagerTest
      - manual test(VALIDATION_SUCCESS, VALIDATION_FAILED,
        NETWORK_CAPTIVE_PORTAL_FOUND, bad network reported)
Bug: 113916551

Change-Id: I5ac39dc826acd26c64adaaa0b27a76cd7c7fd843
parent 1ad4aed0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment