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

Issue 1074263003: Add histograms for a number of hacks in the HTTP header parsing logic. (Closed)

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

Description

Add histograms for a number of hacks in the HTTP header parsing logic. The hacks are: HTTP/0.9 support, allowing bonus characters before HTTP responses, and accepting a truncated set of HTTP headers. Also rename the confusingly named "ParseResponseHeaders" and "DoParseResponseHeaders" methods. BUG=472762 Committed: https://crrev.com/7174c6a47d6d00d2aae3fc1f24f7865ca1a5bad8 Cr-Commit-Position: refs/heads/master@{#325527}

Patch Set 1 #

Patch Set 2 : Merge #

Total comments: 7

Patch Set 3 : Fix search #

Total comments: 4

Patch Set 4 : Response to comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -8 lines) Patch
M net/http/http_stream_parser.h View 1 chunk +2 lines, -2 lines 0 comments Download
M net/http/http_stream_parser.cc View 1 2 7 chunks +42 lines, -6 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 2 chunks +17 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (6 generated)
mmenke
David: By showing the least bit of interest in the effort, you implicitly volunteered to ...
5 years, 8 months ago (2015-04-10 18:14:26 UTC) #4
davidben
https://chromiumcodereview.appspot.com/1074263003/diff/60001/net/http/http_stream_parser.cc File net/http/http_stream_parser.cc (right): https://chromiumcodereview.appspot.com/1074263003/diff/60001/net/http/http_stream_parser.cc#newcode952 net/http/http_stream_parser.cc:952: if (strspn(read_buf_->StartOfBuffer(), " \t\r\n") >= I believe read_buf_ needn't ...
5 years, 8 months ago (2015-04-13 19:55:14 UTC) #5
mmenke
https://codereview.chromium.org/1074263003/diff/60001/net/http/http_stream_parser.cc File net/http/http_stream_parser.cc (right): https://codereview.chromium.org/1074263003/diff/60001/net/http/http_stream_parser.cc#newcode952 net/http/http_stream_parser.cc:952: if (strspn(read_buf_->StartOfBuffer(), " \t\r\n") >= On 2015/04/13 19:55:14, David ...
5 years, 8 months ago (2015-04-13 21:12:22 UTC) #6
davidben
lgtm https://codereview.chromium.org/1074263003/diff/60001/net/http/http_stream_parser.cc File net/http/http_stream_parser.cc (right): https://codereview.chromium.org/1074263003/diff/60001/net/http/http_stream_parser.cc#newcode952 net/http/http_stream_parser.cc:952: if (strspn(read_buf_->StartOfBuffer(), " \t\r\n") >= On 2015/04/13 21:12:21, ...
5 years, 8 months ago (2015-04-14 23:41:40 UTC) #7
mmenke
[+isherman]: Please review histograms.xml. Also, could you comment on my understanding of things: Even if ...
5 years, 8 months ago (2015-04-14 23:51:33 UTC) #9
Ilya Sherman
+Rob in case he wants to comment on storage efficiency. LGTM % nits. I think ...
5 years, 8 months ago (2015-04-15 00:08:06 UTC) #10
mmenke
Going to go ahead and land this as-is, out of paranoia about histogram size (And ...
5 years, 8 months ago (2015-04-16 20:28:01 UTC) #11
mmenke
And thanks for the reviews.
5 years, 8 months ago (2015-04-16 20:28:15 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1074263003/100001
5 years, 8 months ago (2015-04-16 20:30:15 UTC) #15
commit-bot: I haz the power
Committed patchset #4 (id:100001)
5 years, 8 months ago (2015-04-16 22:45:58 UTC) #16
commit-bot: I haz the power
5 years, 8 months ago (2015-04-16 22:46:48 UTC) #17
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/7174c6a47d6d00d2aae3fc1f24f7865ca1a5bad8
Cr-Commit-Position: refs/heads/master@{#325527}

Powered by Google App Engine
This is Rietveld 408576698