Revert: set longer timeout

This commit is contained in:
luvletter2333 2021-04-17 11:55:05 +08:00 committed by 世界
parent c0d06c0065
commit 3d4ab4fb89
No known key found for this signature in database
GPG Key ID: CD109927C34A63C4

View File

@ -376,21 +376,21 @@ void Connection::connect() {
setTimeout(25);
} else if (connectionType == ConnectionTypePush) {
if (isTryingNextPort) {
setTimeout(40);
setTimeout(20);
} else {
setTimeout(60);
setTimeout(30);
}
} else if (connectionType == ConnectionTypeUpload) {
if (ConnectionsManager::getInstance(currentDatacenter->instanceNum).networkSlow) {
setTimeout(80);
setTimeout(40);
} else {
setTimeout(50);
setTimeout(25);
}
} else {
if (isTryingNextPort) {
setTimeout(100);
setTimeout(8);
} else {
setTimeout(200);
setTimeout(12);
}
}
connectionInProcess = false;