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

Issue 1121043002: Make alternate Jobs not use HTTP/1.1 sockets. (Closed)

Created:
5 years, 7 months ago by Bence
Modified:
5 years, 7 months ago
Reviewers:
Ryan Hamilton, davidben
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

Make alternate Jobs not use HTTP/1.1 sockets. An alternate HttpStreamFactoryImpy::Job should not use a socket if HTTP/1.1 is negotiated, nor should it pool to an already open HTTP/1.1 socket. Patch Set 1: Test 7 per https://crbug.com/474217#c6. This should pass. Patch Set 2: Test 8 per https://crbug.com/474217#c6. This will fail. Patch Set 3: One possible fix for the failing test. Patch Set 4: Another possible fix for the failing test. BUG=474217 Committed: https://crrev.com/5452e2a52b71e3a2a4c471c864155831a9a59951 Cr-Commit-Position: refs/heads/master@{#328964}

Patch Set 1 #

Patch Set 2 : Add failing test. #

Patch Set 3 : One possible fix. #

Patch Set 4 : Another possible fix. #

Total comments: 15

Patch Set 5 : Re: #3. #

Patch Set 6 : Re: #5. #

Total comments: 2

Patch Set 7 : Re: #8. #

Total comments: 13

Patch Set 8 : Re: #10. #

Patch Set 9 : Re: #13. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+175 lines, -0 lines) Patch
M net/http/http_network_transaction_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +166 lines, -0 lines 0 comments Download
M net/http/http_stream_factory_impl_job.cc View 1 2 3 4 5 6 7 3 chunks +9 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (5 generated)
Bence
David: PTAL. Thanks.
5 years, 7 months ago (2015-05-01 21:23:39 UTC) #2
davidben
lgtm https://codereview.chromium.org/1121043002/diff/60001/net/http/http_network_transaction_unittest.cc File net/http/http_network_transaction_unittest.cc (right): https://codereview.chromium.org/1121043002/diff/60001/net/http/http_network_transaction_unittest.cc#newcode12015 net/http/http_network_transaction_unittest.cc:12015: rv = callback.WaitForResult(); Since we don't actually care ...
5 years, 7 months ago (2015-05-01 23:21:47 UTC) #3
Bence
David: PTAL at how I remove EXPECT(trans->Start()). Thanks. https://codereview.chromium.org/1121043002/diff/60001/net/http/http_network_transaction_unittest.cc File net/http/http_network_transaction_unittest.cc (right): https://codereview.chromium.org/1121043002/diff/60001/net/http/http_network_transaction_unittest.cc#newcode12015 net/http/http_network_transaction_unittest.cc:12015: rv ...
5 years, 7 months ago (2015-05-04 12:05:07 UTC) #4
davidben
https://codereview.chromium.org/1121043002/diff/60001/net/http/http_network_transaction_unittest.cc File net/http/http_network_transaction_unittest.cc (right): https://codereview.chromium.org/1121043002/diff/60001/net/http/http_network_transaction_unittest.cc#newcode12015 net/http/http_network_transaction_unittest.cc:12015: rv = callback.WaitForResult(); On 2015/05/04 12:05:07, Bence wrote: > ...
5 years, 7 months ago (2015-05-04 16:11:51 UTC) #5
Bence
Ryan: PTAL at patch sets 3 and 4, and decide where to fix this bug, ...
5 years, 7 months ago (2015-05-05 18:23:19 UTC) #7
Ryan Hamilton
Calling MarkAlternateiveServiceBroken seems like it's definitely a good idea too. https://codereview.chromium.org/1121043002/diff/100001/net/http/http_stream_factory_impl_job.cc File net/http/http_stream_factory_impl_job.cc (right): https://codereview.chromium.org/1121043002/diff/100001/net/http/http_stream_factory_impl_job.cc#newcode1110 ...
5 years, 7 months ago (2015-05-05 18:31:55 UTC) #8
Bence
Ryan: PTAL. I chose the check in DoInitConnectionComplete (as in Patch Set 3), because all ...
5 years, 7 months ago (2015-05-05 20:14:18 UTC) #9
Ryan Hamilton
Code looks good, just a couple tiny comments. I'm a bit less clear about the ...
5 years, 7 months ago (2015-05-05 20:51:12 UTC) #10
Bence
Ryan: PTAL. Thank you. https://codereview.chromium.org/1121043002/diff/120001/net/http/http_network_transaction_unittest.cc File net/http/http_network_transaction_unittest.cc (right): https://codereview.chromium.org/1121043002/diff/120001/net/http/http_network_transaction_unittest.cc#newcode12015 net/http/http_network_transaction_unittest.cc:12015: EXPECT_EQ(ERR_NPN_NEGOTIATION_FAILED, callback.GetResult(rv)); On 2015/05/05 20:51:12, ...
5 years, 7 months ago (2015-05-06 13:21:56 UTC) #12
Ryan Hamilton
lgtm, though a suggestion for an addition test (which you can do in a follow ...
5 years, 7 months ago (2015-05-06 21:32:53 UTC) #13
Bence
Ryan: PTAL. Thanks. https://codereview.chromium.org/1121043002/diff/120001/net/http/http_network_transaction_unittest.cc File net/http/http_network_transaction_unittest.cc (right): https://codereview.chromium.org/1121043002/diff/120001/net/http/http_network_transaction_unittest.cc#newcode12015 net/http/http_network_transaction_unittest.cc:12015: EXPECT_EQ(ERR_NPN_NEGOTIATION_FAILED, callback.GetResult(rv)); On 2015/05/06 21:32:53, Ryan ...
5 years, 7 months ago (2015-05-08 14:46:14 UTC) #14
Ryan Hamilton
lgtm https://codereview.chromium.org/1121043002/diff/120001/net/http/http_network_transaction_unittest.cc File net/http/http_network_transaction_unittest.cc (right): https://codereview.chromium.org/1121043002/diff/120001/net/http/http_network_transaction_unittest.cc#newcode12061 net/http/http_network_transaction_unittest.cc:12061: data_refused.set_connect_data(MockConnect(ASYNC, ERR_CONNECTION_REFUSED)); On 2015/05/08 14:46:13, Bence wrote: > ...
5 years, 7 months ago (2015-05-08 15:15:04 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1121043002/180001
5 years, 7 months ago (2015-05-08 15:18:48 UTC) #18
commit-bot: I haz the power
Committed patchset #9 (id:180001)
5 years, 7 months ago (2015-05-08 16:27:56 UTC) #19
commit-bot: I haz the power
5 years, 7 months ago (2015-05-08 16:28:41 UTC) #20
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/5452e2a52b71e3a2a4c471c864155831a9a59951
Cr-Commit-Position: refs/heads/master@{#328964}

Powered by Google App Engine
This is Rietveld 408576698