Skip to content
Snippets Groups Projects
Commit 7659080b authored by Andreas Traczyk's avatar Andreas Traczyk Committed by Adrien Béraud
Browse files

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
parent 41527008
No related branches found
No related tags found
No related merge requests found
...@@ -281,10 +281,12 @@ CrashPadClient::uploadLastReport() ...@@ -281,10 +281,12 @@ CrashPadClient::uploadLastReport()
return; return;
} }
// Wait up to 3 seconds (~1.5s observed on Windows) for the report to be uploaded. // Wait up to 10 seconds for the report to be uploaded.
const int maxAttempts = 20; // Around 5s has been observed running the submission server locally when the client
// is on Windows.
const int maxAttempts = 40;
int attempts = 0; int attempts = 0;
auto timeout = std::chrono::milliseconds(150); auto timeout = std::chrono::milliseconds(250);
C_INFO << "Waiting for report to be uploaded"; C_INFO << "Waiting for report to be uploaded";
while (attempts++ < maxAttempts) { while (attempts++ < maxAttempts) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment