{1.3} Increase shared world relay timeouts
This commit is contained in:
parent
64ac208565
commit
6cd2eed5b3
Binary file not shown.
|
@ -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;
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user