mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 11:42:55 +02:00
Change timeouts to try to prevent ICE disconnects
This commit is contained in:
parent
b3d0705e39
commit
5c42838261
2 changed files with 2 additions and 2 deletions
|
@ -1630,7 +1630,7 @@ void DomainServer::sendHeartbeatToIceServer() {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const int FAILOVER_NO_REPLY_ICE_HEARTBEATS { 3 };
|
const int FAILOVER_NO_REPLY_ICE_HEARTBEATS { 6 };
|
||||||
|
|
||||||
// increase the count of no reply ICE heartbeats and check the current value
|
// increase the count of no reply ICE heartbeats and check the current value
|
||||||
++_noReplyICEHeartbeats;
|
++_noReplyICEHeartbeats;
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
|
|
||||||
const QString ICE_SERVER_HOSTNAME = "localhost";
|
const QString ICE_SERVER_HOSTNAME = "localhost";
|
||||||
const quint16 ICE_SERVER_DEFAULT_PORT = 7337;
|
const quint16 ICE_SERVER_DEFAULT_PORT = 7337;
|
||||||
const int ICE_HEARBEAT_INTERVAL_MSECS = 2 * 1000;
|
const int ICE_HEARBEAT_INTERVAL_MSECS = 1 * 1000;
|
||||||
const int MAX_ICE_CONNECTION_ATTEMPTS = 5;
|
const int MAX_ICE_CONNECTION_ATTEMPTS = 5;
|
||||||
|
|
||||||
const int UDP_PUNCH_PING_INTERVAL_MS = 250;
|
const int UDP_PUNCH_PING_INTERVAL_MS = 250;
|
||||||
|
|
Loading…
Reference in a new issue