mirror of
https://github.com/chromium/crashpad.git
synced 2024-12-27 23:41:02 +08:00
Don't throttle explicitly requested uploads
R=mark@chromium.org BUG=chromium:660955 Change-Id: Ia31846fe3487a52f4cad34859e23a7192ca4065e Reviewed-on: https://chromium-review.googlesource.com/405533 Reviewed-by: Mark Mentovai <mark@chromium.org>
This commit is contained in:
parent
b978b03fa1
commit
c2814e2519
@ -207,9 +207,12 @@ void CrashReportUploadThread::ProcessPendingReport(
|
||||
// hour, and retire reports that would exceed this limit or for which the
|
||||
// upload fails on the first attempt.
|
||||
//
|
||||
// If upload was requested explicitly (i.e. by user action), we do not
|
||||
// throttle the upload.
|
||||
//
|
||||
// TODO(mark): Provide a proper rate-limiting strategy and allow for failed
|
||||
// upload attempts to be retried.
|
||||
if (rate_limit_) {
|
||||
if (!report.upload_explicitly_requested && rate_limit_) {
|
||||
time_t last_upload_attempt_time;
|
||||
if (settings->GetLastUploadAttemptTime(&last_upload_attempt_time)) {
|
||||
time_t now = time(nullptr);
|
||||
|
Loading…
x
Reference in New Issue
Block a user