1
0
Fork 0
mirror of https://git.jami.net/savoirfairelinux/jami-client-qt.git synced 2025-09-10 12:03:18 +02:00

crashpad: increase timeout for crashpad submission

Recent testing with a Windows 10 machine has shown that the crashpad
submission timeout is too short. This commit increases the timeout to
10 seconds, as around 5 seconds has been observed in practice.

Gitlab: #1454
Change-Id: I557a414ea371bd94a42696a835370068867c99dc
This commit is contained in:
Andreas Traczyk 2025-01-14 13:39:21 -05:00 committed by Adrien Béraud
parent 4152700848
commit 7659080b34

View file

@ -281,10 +281,12 @@ CrashPadClient::uploadLastReport()
return;
}
// Wait up to 3 seconds (~1.5s observed on Windows) for the report to be uploaded.
const int maxAttempts = 20;
// Wait up to 10 seconds for the report to be uploaded.
// Around 5s has been observed running the submission server locally when the client
// is on Windows.
const int maxAttempts = 40;
int attempts = 0;
auto timeout = std::chrono::milliseconds(150);
auto timeout = std::chrono::milliseconds(250);
C_INFO << "Waiting for report to be uploaded";
while (attempts++ < maxAttempts) {