Tune up TIMEOUTs of IPSec CTS for low end devices

Ikev2VpnTest#testStartStopVpnProfileV4 and testStartStopVpnProfileV6
contains the IKE sequences and requires the phone to send and receive
the required packet in 1000ms.
On some low end devices, the response time may exceeds this TIMEOUT
sometimes.
So we need to use larger timeouts.

Bug: 171176723
Change-Id: I005b83ffecd8ade5063000690bfd4136d82f1a07
This commit is contained in:
Yintang Gu 2020-11-10 11:37:32 +08:00 • committed by Denis Hsu
commit 5c39147e5a

View file

@ -47,7 +47,7 @@ public class TunUtils {
protected static final int IP6_PROTO_OFFSET = 6;
private static final int DATA_BUFFER_LEN = 4096;
private static final int TIMEOUT = 1000;
private static final int TIMEOUT = 2000;
private final List<byte[]> mPackets = new ArrayList<>();
private final ParcelFileDescriptor mTunFd;