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

Issue 2170133004: HttpChunkedDecoder: Support chunks longer than 2^31-1 bytes. (Closed)

Created:
4 years, 5 months ago by mmenke
Modified:
4 years, 5 months ago
Reviewers:
eroman
CC:
chromium-reviews, cbentzel+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

HttpChunkedDecoder: Support chunks longer than 2^31-1 bytes. We were using HexStringToInt to parse chunk size, which returns a 32-bit int. This CL switches to using HexStringToInt64, which uses 64-bit ints, so we can now support chunks up to 2^63-1 bytes. That should be enough for anybody. [Cue dramatic music] BUG=630680 Committed: https://crrev.com/8ea249f8b70f154f9995ed538fc853fe9cf46503 Cr-Commit-Position: refs/heads/master@{#407549}

Patch Set 1 #

Patch Set 2 : Speed up, beef up tests #

Total comments: 4

Patch Set 3 : Use comparison operators instead of coercing ints to bools #

Patch Set 4 : Missed two #

Unified diffs Side-by-side diffs Delta from patch set Stats (+89 lines, -19 lines) Patch
M net/http/http_chunked_decoder.h View 2 chunks +3 lines, -2 lines 0 comments Download
M net/http/http_chunked_decoder.cc View 1 2 3 6 chunks +19 lines, -14 lines 0 comments Download
M net/http/http_chunked_decoder_unittest.cc View 1 2 chunks +67 lines, -3 lines 0 comments Download

Messages

Total messages: 22 (14 generated)
mmenke
CL seems a bit silly, but failing a request because the chunk size is too ...
4 years, 5 months ago (2016-07-25 15:36:01 UTC) #8
eroman
lgtm https://codereview.chromium.org/2170133004/diff/20001/net/http/http_chunked_decoder.cc File net/http/http_chunked_decoder.cc (right): https://codereview.chromium.org/2170133004/diff/20001/net/http/http_chunked_decoder.cc#newcode73 net/http/http_chunked_decoder.cc:73: if (chunk_remaining_) { side-comment: These sort of "if" ...
4 years, 5 months ago (2016-07-25 18:11:38 UTC) #11
mmenke
Thanks for the feedback! https://codereview.chromium.org/2170133004/diff/20001/net/http/http_chunked_decoder.cc File net/http/http_chunked_decoder.cc (right): https://codereview.chromium.org/2170133004/diff/20001/net/http/http_chunked_decoder.cc#newcode73 net/http/http_chunked_decoder.cc:73: if (chunk_remaining_) { On 2016/07/25 ...
4 years, 5 months ago (2016-07-25 18:23:35 UTC) #14
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/2170133004/60001
4 years, 5 months ago (2016-07-25 18:24:13 UTC) #17
eroman
patchset4 LGTM
4 years, 5 months ago (2016-07-25 19:08:23 UTC) #18
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 5 months ago (2016-07-25 19:49:31 UTC) #19
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/8ea249f8b70f154f9995ed538fc853fe9cf46503 Cr-Commit-Position: refs/heads/master@{#407549}
4 years, 5 months ago (2016-07-25 19:52:11 UTC) #21
Mark P
4 years, 5 months ago (2016-07-26 00:31:19 UTC) #22
Message was sent while issue was closed.
A revert of this CL (patchset #4 id:60001) has been created in
https://codereview.chromium.org/2183433003/ by mpearson@chromium.org.

The reason for reverting is: Speculative revert for bug 631246.  Have no better
ideas.

Apologies if this wasn't the cause.
.

Powered by Google App Engine
This is Rietveld 408576698