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

Issue 284913003: Remove DCHECK in HttpStreamParser::ReadResponseHeaders. (Closed)

Created:
6 years, 7 months ago by mmenke
Modified:
6 years, 7 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org
Visibility:
Public.

Description

Remove DCHECK in HttpStreamParser::ReadResponseHeaders. The DCHECK dereferenced the request's HttpResponseInfo. It turns out that when an HttpNetworkTransaction is cancelled and an HttpResponseDrainer is used, the HttpResponseInfo is deleted with the HttpStreamParser's knowledge. This CL also adds a pair of tests for the situation. BUG=368418 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=271014

Patch Set 1 #

Total comments: 2

Patch Set 2 : Really remove line #

Unified diffs Side-by-side diffs Delta from patch set Stats (+107 lines, -3 lines) Patch
M net/http/http_network_transaction_unittest.cc View 1 chunk +50 lines, -0 lines 0 comments Download
M net/http/http_stream_parser.cc View 1 1 chunk +0 lines, -3 lines 0 comments Download
M net/http/http_stream_parser_unittest.cc View 1 chunk +57 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
mmenke
I'd also like to get rid of HttpStreamParser::GetResponseInfo, because it's unsafe to call in the ...
6 years, 7 months ago (2014-05-14 15:53:27 UTC) #1
willchan no longer on Chromium
https://codereview.chromium.org/284913003/diff/1/net/http/http_stream_parser.cc File net/http/http_stream_parser.cc (left): https://codereview.chromium.org/284913003/diff/1/net/http/http_stream_parser.cc#oldcode349 net/http/http_stream_parser.cc:349: DCHECK_NE(1, response_->headers->response_code() / 100); I'm confused, don't you need ...
6 years, 7 months ago (2014-05-15 08:49:02 UTC) #2
mmenke
https://codereview.chromium.org/284913003/diff/1/net/http/http_stream_parser.cc File net/http/http_stream_parser.cc (left): https://codereview.chromium.org/284913003/diff/1/net/http/http_stream_parser.cc#oldcode349 net/http/http_stream_parser.cc:349: DCHECK_NE(1, response_->headers->response_code() / 100); On 2014/05/15 08:49:02, willchan (traveling ...
6 years, 7 months ago (2014-05-15 12:20:07 UTC) #3
mmenke
On 2014/05/15 12:20:07, mmenke wrote: > https://codereview.chromium.org/284913003/diff/1/net/http/http_stream_parser.cc > File net/http/http_stream_parser.cc (left): > > https://codereview.chromium.org/284913003/diff/1/net/http/http_stream_parser.cc#oldcode349 > ...
6 years, 7 months ago (2014-05-15 12:33:48 UTC) #4
willchan no longer on Chromium
lgtm
6 years, 7 months ago (2014-05-16 12:36:58 UTC) #5
mmenke
The CQ bit was checked by mmenke@chromium.org
6 years, 7 months ago (2014-05-16 13:04:14 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mmenke@chromium.org/284913003/40001
6 years, 7 months ago (2014-05-16 13:04:44 UTC) #7
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-16 14:03:48 UTC) #8
commit-bot: I haz the power
6 years, 7 months ago (2014-05-16 14:58:14 UTC) #9
Message was sent while issue was closed.
Change committed as 271014

Powered by Google App Engine
This is Rietveld 408576698