Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(137)

Issue 2872943003: Reduce unnecessary download interruptions due to parallel requests (Closed)

Created:
3 years, 7 months ago by qinmin
Modified:
3 years, 7 months ago
CC:
chromium-reviews, jam, David Trainor- moved to gerrit, darin-cc_chromium.org, kinuko+watch, blink-worker-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Reduce unnecessary download interruptions due to parallel requests If a parallel request fails to when response starts, it will interrupt the download. However, the failure may be recoverable by the main requst. And this issue may cause a download to never finish even if user resumes it. This change fixes the issue by allowing the failure to passthrough to DownloadFileImpl. So that DownloadFileImpl can check whether the failure is recoverable. A side effect of this change is more we will create received_slice vector even if all parallel requests fails. This can be addressed in later changes. BUG=720057 Review-Url: https://codereview.chromium.org/2872943003 Cr-Commit-Position: refs/heads/master@{#470994} Committed: https://chromium.googlesource.com/chromium/src/+/c41a4fc09f9356d7d225747454b707eccd745e54

Patch Set 1 #

Total comments: 8

Patch Set 2 : more restrictions on DOWNLOAD_INTERRUPT_REASON_SERVER_NO_RANGE #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -52 lines) Patch
M content/browser/download/download_file_impl.cc View 1 1 chunk +12 lines, -2 lines 0 comments Download
M content/browser/download/download_job.h View 1 2 chunks +0 lines, -4 lines 0 comments Download
M content/browser/download/download_job.cc View 1 2 chunks +0 lines, -16 lines 0 comments Download
M content/browser/download/download_stats.cc View 1 chunk +7 lines, -7 lines 0 comments Download
M content/browser/download/download_worker.h View 1 chunk +0 lines, -3 lines 0 comments Download
M content/browser/download/download_worker.cc View 1 2 chunks +18 lines, -3 lines 0 comments Download
M content/browser/download/parallel_download_job.h View 1 chunk +0 lines, -2 lines 0 comments Download
M content/browser/download/parallel_download_job.cc View 1 chunk +0 lines, -15 lines 0 comments Download

Messages

Total messages: 24 (15 generated)
qinmin
PTAL
3 years, 7 months ago (2017-05-09 18:59:08 UTC) #2
xingliu
https://codereview.chromium.org/2872943003/diff/1/content/browser/download/download_file_impl.cc File content/browser/download/download_file_impl.cc (right): https://codereview.chromium.org/2872943003/diff/1/content/browser/download/download_file_impl.cc#newcode448 content/browser/download/download_file_impl.cc:448: DOWNLOAD_INTERRUPT_REASON_SERVER_NO_RANGE) { Are errors for non-parallel download also affected ...
3 years, 7 months ago (2017-05-10 01:40:17 UTC) #7
qinmin
https://codereview.chromium.org/2872943003/diff/1/content/browser/download/download_file_impl.cc File content/browser/download/download_file_impl.cc (right): https://codereview.chromium.org/2872943003/diff/1/content/browser/download/download_file_impl.cc#newcode448 content/browser/download/download_file_impl.cc:448: DOWNLOAD_INTERRUPT_REASON_SERVER_NO_RANGE) { On 2017/05/10 01:40:17, xingliu wrote: > Are ...
3 years, 7 months ago (2017-05-10 17:47:24 UTC) #8
xingliu
lgtm
3 years, 7 months ago (2017-05-10 18:11:33 UTC) #11
David Trainor- moved to gerrit
lgtm
3 years, 7 months ago (2017-05-10 20:12:49 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2872943003/20001
3 years, 7 months ago (2017-05-10 21:22:30 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_TIMED_OUT, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/433129)
3 years, 7 months ago (2017-05-11 03:27:20 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2872943003/20001
3 years, 7 months ago (2017-05-11 17:16:37 UTC) #20
commit-bot: I haz the power
3 years, 7 months ago (2017-05-11 17:24:55 UTC) #24
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/c41a4fc09f9356d7d225747454b7...

Powered by Google App Engine
This is Rietveld 408576698