increased some rare timeouts

This commit is contained in:
LAX1DUDE 2022-08-25 20:27:43 -07:00
parent 1122902aa9
commit 1bbfa24430
4 changed files with 2610 additions and 2611 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@ -211,7 +211,7 @@ public class IntegratedServerLAN {
Thread.sleep(20l);
} catch (InterruptedException e) {
}
}while(System.currentTimeMillis() - millis < 3000l);
}while(System.currentTimeMillis() - millis < 5000l);
System.err.println("Getting server ICE candidates for '" + clientId + "' timed out!");
disconnect();
}else {
@ -242,7 +242,7 @@ public class IntegratedServerLAN {
Thread.sleep(20l);
} catch (InterruptedException e) {
}
}while(System.currentTimeMillis() - millis < 3000l);
}while(System.currentTimeMillis() - millis < 5000l);
System.err.println("Getting server description for '" + clientId + "' timed out!");
disconnect();
}else {
@ -276,7 +276,7 @@ public class IntegratedServerLAN {
Thread.sleep(20l);
} catch (InterruptedException e) {
}
}while(System.currentTimeMillis() - millis < 3000l);
}while(System.currentTimeMillis() - millis < 5000l);
System.err.println("Getting server description for '" + clientId + "' timed out!");
disconnect();
}else {

View File

@ -94,7 +94,7 @@ public class LANClientNetworkManager implements INetworkManager {
Thread.sleep(20l);
} catch (InterruptedException e) {
}
}while(System.currentTimeMillis() - lm < 3000l);
}while(System.currentTimeMillis() - lm < 5000l);
// no description was sent
sock.close();
@ -134,7 +134,7 @@ public class LANClientNetworkManager implements INetworkManager {
Thread.sleep(20l);
} catch (InterruptedException e) {
}
}while(System.currentTimeMillis() - lm < 3000l);
}while(System.currentTimeMillis() - lm < 5000l);
// no channel was opened
sock.writePacket(new IPacket06ClientFailure(ipkt.peerId));
@ -176,7 +176,7 @@ public class LANClientNetworkManager implements INetworkManager {
Thread.sleep(20l);
} catch (InterruptedException e) {
}
}while(System.currentTimeMillis() - lm < 3000l);
}while(System.currentTimeMillis() - lm < 5000l);
// no ice candidates were sent
sock.close();