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

Issue 425803014: Refactor pooling logic into a helper method (Closed)

Created:
6 years, 4 months ago by Ryan Hamilton
Modified:
6 years, 4 months ago
Reviewers:
wtc, Ryan Sleevi
CC:
cbentzel+watch_chromium.org
Project:
chromium
Visibility:
Public.

Description

Refactor pooling logic into a helper method Disable pooling when there are cert errors. Disable pooling when pinning does not match for the new host. BUG=398925 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=289433 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=290320 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=290497

Patch Set 1 #

Patch Set 2 : Working #

Total comments: 14

Patch Set 3 : Address comments #

Patch Set 4 : add QUIC test #

Total comments: 19

Patch Set 5 : Fix comments from rsleevi #

Patch Set 6 : fail closed #

Patch Set 7 : Fix more comments from rsleevi #

Patch Set 8 : Do not check TSS if it is NULL #

Patch Set 9 : CHECK(transport_security_state) #

Patch Set 10 : initialize transport_security_state_ #

Patch Set 11 : Add tests #

Total comments: 2

Patch Set 12 : fix leak in tests #

Patch Set 13 : fix test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+443 lines, -56 lines) Patch
M net/http/http_network_session.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M net/http/http_response_body_drainer_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +4 lines, -0 lines 0 comments Download
M net/quic/quic_client_session.h View 1 3 chunks +3 lines, -0 lines 0 comments Download
M net/quic/quic_client_session.cc View 1 2 3 4 5 chunks +6 lines, -22 lines 0 comments Download
M net/quic/quic_client_session_test.cc View 1 2 3 7 chunks +54 lines, -10 lines 0 comments Download
M net/quic/quic_http_stream_test.cc View 1 3 chunks +3 lines, -0 lines 0 comments Download
M net/quic/quic_stream_factory.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M net/quic/quic_stream_factory.cc View 1 2 3 4 5 6 7 8 9 3 chunks +4 lines, -2 lines 0 comments Download
M net/quic/quic_stream_factory_test.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +144 lines, -4 lines 0 comments Download
M net/socket/ssl_client_socket_pool_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +4 lines, -3 lines 0 comments Download
M net/spdy/spdy_session.h View 1 2 4 chunks +11 lines, -0 lines 0 comments Download
M net/spdy/spdy_session.cc View 1 2 5 8 9 4 chunks +43 lines, -12 lines 0 comments Download
M net/spdy/spdy_session_pool.h View 1 3 chunks +4 lines, -0 lines 0 comments Download
M net/spdy/spdy_session_pool.cc View 1 3 chunks +3 lines, -0 lines 0 comments Download
M net/spdy/spdy_session_unittest.cc View 1 2 3 4 4 chunks +107 lines, -3 lines 0 comments Download
M net/spdy/spdy_test_utils.h View 1 2 3 4 5 6 2 chunks +18 lines, -0 lines 0 comments Download
M net/spdy/spdy_test_utils.cc View 1 2 3 4 5 6 2 chunks +33 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (0 generated)
Ryan Hamilton
You don't need to review this now since my other CL still needs work, but ...
6 years, 4 months ago (2014-08-07 17:05:52 UTC) #1
Ryan Sleevi
Drive by! Two high-level comments: Test wise, you should have a test for each of ...
6 years, 4 months ago (2014-08-07 18:49:29 UTC) #2
Ryan Hamilton
Thanks for the comments! The CL wasn't yet ready for review (since I hadn't yet ...
6 years, 4 months ago (2014-08-08 19:27:44 UTC) #3
Ryan Hamilton
Added a QUIC pooling + pinning test
6 years, 4 months ago (2014-08-08 19:52:40 UTC) #4
Ryan Sleevi
Mostly nits, except one question on IsCertStatusMinorError I think this LGTM, but it'd be good ...
6 years, 4 months ago (2014-08-11 18:45:18 UTC) #5
Ryan Sleevi
https://codereview.chromium.org/425803014/diff/20001/net/http/http_util.cc File net/http/http_util.cc (right): https://codereview.chromium.org/425803014/diff/20001/net/http/http_util.cc#newcode758 net/http/http_util.cc:758: return false; On 2014/08/08 19:27:43, Ryan Hamilton wrote: > ...
6 years, 4 months ago (2014-08-11 19:03:43 UTC) #6
Ryan Sleevi
https://codereview.chromium.org/425803014/diff/20001/net/quic/quic_client_session.cc File net/quic/quic_client_session.cc (right): https://codereview.chromium.org/425803014/diff/20001/net/quic/quic_client_session.cc#newcode496 net/quic/quic_client_session.cc:496: return HttpUtil::CanPool(transport_security_state_, ssl_info, On 2014/08/08 19:27:43, Ryan Hamilton wrote: ...
6 years, 4 months ago (2014-08-11 19:09:17 UTC) #7
Ryan Hamilton
Thanks for the review. One question. https://codereview.chromium.org/425803014/diff/20001/net/http/http_util.cc File net/http/http_util.cc (right): https://codereview.chromium.org/425803014/diff/20001/net/http/http_util.cc#newcode758 net/http/http_util.cc:758: return false; On ...
6 years, 4 months ago (2014-08-12 14:39:06 UTC) #8
Ryan Sleevi
https://codereview.chromium.org/425803014/diff/60001/net/spdy/spdy_session.cc File net/spdy/spdy_session.cc (right): https://codereview.chromium.org/425803014/diff/60001/net/spdy/spdy_session.cc#newcode542 net/spdy/spdy_session.cc:542: if (IsCertStatusError(ssl_info.cert_status)) On 2014/08/12 14:39:06, Ryan Hamilton wrote: > ...
6 years, 4 months ago (2014-08-12 14:52:03 UTC) #9
Ryan Hamilton
https://codereview.chromium.org/425803014/diff/60001/net/spdy/spdy_session.cc File net/spdy/spdy_session.cc (right): https://codereview.chromium.org/425803014/diff/60001/net/spdy/spdy_session.cc#newcode542 net/spdy/spdy_session.cc:542: if (IsCertStatusError(ssl_info.cert_status)) On 2014/08/12 14:52:03, Ryan Sleevi wrote: > ...
6 years, 4 months ago (2014-08-12 15:37:10 UTC) #10
Ryan Hamilton
The CQ bit was checked by rch@chromium.org
6 years, 4 months ago (2014-08-13 15:21:33 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rch@chromium.org/425803014/120001
6 years, 4 months ago (2014-08-13 15:22:14 UTC) #12
commit-bot: I haz the power
Committed patchset #7 (120001) as 289433
6 years, 4 months ago (2014-08-14 01:00:20 UTC) #13
Ryan Hamilton
A revert of this CL (patchset #7) has been created in https://codereview.chromium.org/474303002/ by rch@chromium.org. The ...
6 years, 4 months ago (2014-08-15 17:45:56 UTC) #14
Ryan Hamilton
*facepalm* sleevi: can you take a look at patch set 9. The original CL which ...
6 years, 4 months ago (2014-08-15 22:48:28 UTC) #15
Ryan Hamilton
On 2014/08/15 22:48:28, Ryan Hamilton wrote: > *facepalm* > > sleevi: can you take a ...
6 years, 4 months ago (2014-08-16 16:37:46 UTC) #16
Ryan Sleevi
Patchset 11 LGTM
6 years, 4 months ago (2014-08-18 05:50:27 UTC) #17
Ryan Hamilton
The CQ bit was checked by rch@chromium.org
6 years, 4 months ago (2014-08-18 15:57:41 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rch@chromium.org/425803014/200001
6 years, 4 months ago (2014-08-18 15:58:35 UTC) #19
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_x64_rel_swarming on tryserver.chromium.win ...
6 years, 4 months ago (2014-08-18 17:34:12 UTC) #20
commit-bot: I haz the power
Committed patchset #11 (200001) as 290320
6 years, 4 months ago (2014-08-18 19:16:05 UTC) #21
viettrungluu
On 2014/08/18 19:16:05, I haz the power (commit-bot) wrote: > Committed patchset #11 (200001) as ...
6 years, 4 months ago (2014-08-18 21:51:27 UTC) #22
Ryan Hamilton
The CQ bit was checked by rch@chromium.org
6 years, 4 months ago (2014-08-19 04:12:10 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rch@chromium.org/425803014/240001
6 years, 4 months ago (2014-08-19 04:13:28 UTC) #24
Ryan Sleevi
Not LGTM. If you're going to TBR-CQ, please publish. As it is, I'm fairly confident ...
6 years, 4 months ago (2014-08-19 05:20:28 UTC) #25
commit-bot: I haz the power
Committed patchset #13 (240001) as 290497
6 years, 4 months ago (2014-08-19 05:22:24 UTC) #26
Ryan Hamilton
https://codereview.chromium.org/425803014/diff/200001/net/socket/ssl_client_socket_pool_unittest.cc File net/socket/ssl_client_socket_pool_unittest.cc (right): https://codereview.chromium.org/425803014/diff/200001/net/socket/ssl_client_socket_pool_unittest.cc#newcode196 net/socket/ssl_client_socket_pool_unittest.cc:196: params.transport_security_state = new TransportSecurityState(); On 2014/08/19 05:20:28, Ryan Sleevi ...
6 years, 4 months ago (2014-08-19 13:50:19 UTC) #27
Ryan Sleevi
6 years, 4 months ago (2014-08-19 15:00:32 UTC) #28
Message was sent while issue was closed.
That was... Surprising.

Lgtm for history, and shame on me for not yelling about the duplication the
first time around :)

Powered by Google App Engine
This is Rietveld 408576698