mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 14:58:03 +02:00
CR
This commit is contained in:
parent
5c42838261
commit
c691ee496e
2 changed files with 8 additions and 4 deletions
|
@ -1586,11 +1586,11 @@ void DomainServer::sendICEServerAddressToMetaverseAPI() {
|
||||||
void DomainServer::handleSuccessfulICEServerAddressUpdate(QNetworkReply* requestReply) {
|
void DomainServer::handleSuccessfulICEServerAddressUpdate(QNetworkReply* requestReply) {
|
||||||
_sendICEServerAddressToMetaverseAPIInProgress = false;
|
_sendICEServerAddressToMetaverseAPIInProgress = false;
|
||||||
if (_sendICEServerAddressToMetaverseAPIRedo) {
|
if (_sendICEServerAddressToMetaverseAPIRedo) {
|
||||||
qCDebug(domain_server_ice) << "ice-server address updated with metaverse, but has since changed. redoing update...";
|
qCDebug(domain_server_ice) << "ice-server address (" << _iceServerSocket << ") updated with metaverse, but has since changed. redoing update...";
|
||||||
_sendICEServerAddressToMetaverseAPIRedo = false;
|
_sendICEServerAddressToMetaverseAPIRedo = false;
|
||||||
sendICEServerAddressToMetaverseAPI();
|
sendICEServerAddressToMetaverseAPI();
|
||||||
} else {
|
} else {
|
||||||
qCDebug(domain_server_ice) << "ice-server address updated with metaverse.";
|
qCDebug(domain_server_ice) << "ice-server address (" << _iceServerSocket << ") updated with metaverse.";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1603,7 +1603,7 @@ void DomainServer::handleFailedICEServerAddressUpdate(QNetworkReply* requestRepl
|
||||||
} else {
|
} else {
|
||||||
const int ICE_SERVER_UPDATE_RETRY_MS = 2 * 1000;
|
const int ICE_SERVER_UPDATE_RETRY_MS = 2 * 1000;
|
||||||
|
|
||||||
qCWarning(domain_server_ice) << "Failed to update ice-server address with High Fidelity Metaverse - error was"
|
qCWarning(domain_server_ice) << "Failed to update ice-server address (" << _iceServerSocket << ") with High Fidelity Metaverse - error was"
|
||||||
<< requestReply->errorString();
|
<< requestReply->errorString();
|
||||||
qCWarning(domain_server_ice) << "\tRe-attempting in" << ICE_SERVER_UPDATE_RETRY_MS / 1000 << "seconds";
|
qCWarning(domain_server_ice) << "\tRe-attempting in" << ICE_SERVER_UPDATE_RETRY_MS / 1000 << "seconds";
|
||||||
|
|
||||||
|
|
|
@ -562,10 +562,14 @@ void DomainHandler::processDomainServerConnectionDeniedPacket(QSharedPointer<Rec
|
||||||
bool DomainHandler::checkInPacketTimeout() {
|
bool DomainHandler::checkInPacketTimeout() {
|
||||||
++_checkInPacketsSinceLastReply;
|
++_checkInPacketsSinceLastReply;
|
||||||
|
|
||||||
|
if (_checkInPacketsSinceLastReply > 1) {
|
||||||
|
qCDebug(networking_ice) << "Silent domain checkins:" << _checkInPacketsSinceLastReply;
|
||||||
|
}
|
||||||
|
|
||||||
if (_checkInPacketsSinceLastReply > MAX_SILENT_DOMAIN_SERVER_CHECK_INS) {
|
if (_checkInPacketsSinceLastReply > MAX_SILENT_DOMAIN_SERVER_CHECK_INS) {
|
||||||
// we haven't heard back from DS in MAX_SILENT_DOMAIN_SERVER_CHECK_INS
|
// we haven't heard back from DS in MAX_SILENT_DOMAIN_SERVER_CHECK_INS
|
||||||
// so emit our signal that says that
|
// so emit our signal that says that
|
||||||
qCDebug(networking) << "Limit of silent domain checkins reached";
|
qCDebug(networking_ice) << "Limit of silent domain checkins reached";
|
||||||
emit limitOfSilentDomainCheckInsReached();
|
emit limitOfSilentDomainCheckInsReached();
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue