Merge "Fix flaky UdpEncapsulationSocket test"
This commit is contained in:
@@ -96,9 +96,10 @@ public class IpSecService extends IIpSecService.Stub {
|
|||||||
new int[] {OsConstants.AF_INET, OsConstants.AF_INET6};
|
new int[] {OsConstants.AF_INET, OsConstants.AF_INET6};
|
||||||
|
|
||||||
private static final int NETD_FETCH_TIMEOUT_MS = 5000; // ms
|
private static final int NETD_FETCH_TIMEOUT_MS = 5000; // ms
|
||||||
private static final int MAX_PORT_BIND_ATTEMPTS = 10;
|
|
||||||
private static final InetAddress INADDR_ANY;
|
private static final InetAddress INADDR_ANY;
|
||||||
|
|
||||||
|
@VisibleForTesting static final int MAX_PORT_BIND_ATTEMPTS = 10;
|
||||||
|
|
||||||
static {
|
static {
|
||||||
try {
|
try {
|
||||||
INADDR_ANY = InetAddress.getByAddress(new byte[] {0, 0, 0, 0});
|
INADDR_ANY = InetAddress.getByAddress(new byte[] {0, 0, 0, 0});
|
||||||
|
|||||||
Reference in New Issue
Block a user