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:
parent
4152700848
commit
7659080b34
1 changed files with 5 additions and 3 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue