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

Issue 1500053002: Merge: Fix HttpStreamParser::CanReuseConnection(). (Closed)

Created:
5 years ago by mmenke
Modified:
5 years ago
Reviewers:
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@2526
Target Ref:
refs/pending/branch-heads/2526
Project:
chromium
Visibility:
Public.

Description

Merge: Fix HttpStreamParser::CanReuseConnection(). It was incorrectly returning false when the connection was not idle. This regressed in https://codereview.chromium.org/1320683003, when the logic was moved down into HttpStreamParser from HttpNetworkTransaction. The most noticeable thing this broke is multi-round auth when there was a large response body, but it also made it so Chrome wasn't reusing sockets when requests with partially received responses were cancelled. I'm landing this without tests - unfortunately, writing tests for this revealed that a huge number of net tests rely on mock sockets that keep pointers around to SocketDataProviders that are deleted before the mock socket is. Tests are blocked on either resolving that, or making new infrastructure that works around the issue. BUG=544255 Review URL: https://codereview.chromium.org/1494813002 Cr-Commit-Position: refs/heads/master@{#363116} (cherry picked from commit 911ee022046cbcfaa8c7ea8d41760bea5b67070c) Committed: https://chromium.googlesource.com/chromium/src/+/d78690fe293b934b81f445f53934ae2dc2274384

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -8 lines) Patch
M net/http/http_network_transaction_unittest.cc View 1 chunk +2 lines, -6 lines 0 comments Download
M net/http/http_stream_parser.h View 1 chunk +2 lines, -1 line 0 comments Download
M net/http/http_stream_parser.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 2 (1 generated)
mmenke
5 years ago (2015-12-04 18:22:40 UTC) #2
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
d78690fe293b934b81f445f53934ae2dc2274384.

Powered by Google App Engine
This is Rietveld 408576698