Chromium Code Reviews
Descriptionset content length limit if half open range request fails
If a range request fails, normally we should report an error.
However, if the request is half open, it means we are reaching the end of the file.
When resuming a download, we get the slice info from the history db.
However, we cannot tell if the last slice has reached the end of the stream.
As a result, a half open request is always sent.
And this request can be used to determine the content length.
BUG=644352
Review-Url: https://codereview.chromium.org/2794683002
Cr-Commit-Position: refs/heads/master@{#461595}
Committed: https://chromium.googlesource.com/chromium/src/+/3ba57766474b9e525e858ae8382d8acbdec34039
Patch Set 1 #
Total comments: 8
Patch Set 2 : rename variable #
Total comments: 6
Patch Set 3 : new comments #
Messages
Total messages: 16 (7 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||