diff --git a/src/app/crashreportclients/crashpad.cpp b/src/app/crashreportclients/crashpad.cpp index c978884207a7c7cb1bfcbb9afaa0868c3ef77771..a11347c9042c4a393b4cffd49ed2689008b8b736 100644 --- a/src/app/crashreportclients/crashpad.cpp +++ b/src/app/crashreportclients/crashpad.cpp @@ -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) {