increased timeouts

This commit is contained in:
LAX1DUDE 2022-08-20 15:21:12 -07:00
parent d47243a30f
commit 87ee7918ba
2 changed files with 3 additions and 3 deletions

View file

@ -411,7 +411,7 @@ window.initializeLANClient = (() => {
self.iceCandidateHandler(JSON.stringify(iceCandidates)); self.iceCandidateHandler(JSON.stringify(iceCandidates));
iceCandidates.length = 0; iceCandidates.length = 0;
} }
}, 1500); }, 3000);
iceCandidates.push({ sdpMLineIndex: evt.candidate.sdpMLineIndex, candidate: evt.candidate.candidate }); iceCandidates.push({ sdpMLineIndex: evt.candidate.sdpMLineIndex, candidate: evt.candidate.candidate });
} }
}); });
@ -533,7 +533,7 @@ window.initializeLANServer = (() => {
self.client.iceCandidateHandler(self.peerId, JSON.stringify(iceCandidates)); self.client.iceCandidateHandler(self.peerId, JSON.stringify(iceCandidates));
iceCandidates.length = 0; iceCandidates.length = 0;
} }
}, 1500); }, 3000);
iceCandidates.push({ sdpMLineIndex: evt.candidate.sdpMLineIndex, candidate: evt.candidate.candidate }); iceCandidates.push({ sdpMLineIndex: evt.candidate.sdpMLineIndex, candidate: evt.candidate.candidate });
} }
}); });

View file

@ -82,7 +82,7 @@ public class EaglerSPRelay extends WebSocketServer {
Iterator<EaglerSPClient> itr = clientConnections.values().iterator(); Iterator<EaglerSPClient> itr = clientConnections.values().iterator();
while(itr.hasNext()) { while(itr.hasNext()) {
EaglerSPClient cl = itr.next(); EaglerSPClient cl = itr.next();
if(millis - cl.createdOn > 6900l) { if(millis - cl.createdOn > 10000l) {
cl.disconnect(IPacketFEDisconnectClient.TYPE_TIMEOUT, "Took too long to connect!"); cl.disconnect(IPacketFEDisconnectClient.TYPE_TIMEOUT, "Took too long to connect!");
} }
} }