{1.3} Increase shared world relay timeouts

This commit is contained in:
lax1dude 2024-11-19 19:45:57 -08:00
parent 64ac208565
commit 6cd2eed5b3
3 changed files with 3 additions and 3 deletions

View File

@ -17,7 +17,7 @@ package net.lax1dude.eaglercraft.v1_8.sp.relay.server;
*/
public class Constants {
public static final String versionName = "1.2";
public static final String versionName = "1.3";
public static final String versionBrand = "lax1dude";
public static final int protocolVersion = 1;

View File

@ -91,7 +91,7 @@ public class EaglerSPRelay extends WebSocketServer {
Iterator<Entry<WebSocket,PendingConnection>> itr = pendingConnections.entrySet().iterator();
while(itr.hasNext()) {
Entry<WebSocket,PendingConnection> etr = itr.next();
if(millis - etr.getValue().openTime > 500l) {
if(millis - etr.getValue().openTime > 1000l) {
pendingToClose.add(etr.getKey());
itr.remove();
}
@ -101,7 +101,7 @@ public class EaglerSPRelay extends WebSocketServer {
Iterator<EaglerSPClient> itr = clientConnections.values().iterator();
while(itr.hasNext()) {
EaglerSPClient cl = itr.next();
if(millis - cl.createdOn > 10000l) {
if(millis - cl.createdOn > 15000l) {
clientToClose.add(cl);
}
}