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

Issue 476313004: Change the lifespan of SSlConnectJobMessengers so that they are created (Closed)

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

Description

Change the lifespan of SSlConnectJobMessengers so that they are created only when needed, and deleted as soon as they are no longer necessary. Add methods to SSLClientSocketPool that are passed to the SSLConnectJob and SSLConnectJobMessenger as callbacks. These allow the SSLConnectJob to tell the SSLClientSocketPool to create a messenger for the job when appropriate, and the SSLConnectJobMessenger to tell the SSLCLientSocketPool to remove a messenger when appropriate. An SSLConnectJob will now only create an SSLConnectJobMessenger if its socket's session is not already in the session cache. The messenger will then ask to be removed when there are no remaining pending or connecting sockets in the messenger. Written by Mackenzie Shelley <mshelley@chromium.org>; Original review URL: https://codereview.chromium.org/384873002/ R=rsleevi@chromium.org TBR=mek@chromium.org BUG=398967 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=291192

Patch Set 1 #

Patch Set 2 : Add a mock for GetSessionCacheKey to tls_socket_unittest.cc. #

Total comments: 2

Patch Set 3 : Mark the SSLConnectJobMessenger constructor as explicit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+138 lines, -81 lines) Patch
M chrome/browser/extensions/api/socket/tls_socket_unittest.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M net/socket/socket_test_util.h View 3 chunks +3 lines, -0 lines 0 comments Download
M net/socket/socket_test_util.cc View 3 chunks +12 lines, -0 lines 0 comments Download
M net/socket/ssl_client_socket.h View 1 chunk +2 lines, -9 lines 0 comments Download
M net/socket/ssl_client_socket.cc View 1 chunk +0 lines, -10 lines 0 comments Download
M net/socket/ssl_client_socket_nss.h View 1 chunk +1 line, -0 lines 0 comments Download
M net/socket/ssl_client_socket_nss.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M net/socket/ssl_client_socket_openssl.h View 2 chunks +1 line, -2 lines 0 comments Download
M net/socket/ssl_client_socket_openssl.cc View 2 chunks +7 lines, -4 lines 0 comments Download
M net/socket/ssl_client_socket_pool.h View 1 2 9 chunks +42 lines, -21 lines 0 comments Download
M net/socket/ssl_client_socket_pool.cc View 14 chunks +63 lines, -34 lines 0 comments Download
M net/socket/transport_client_socket_pool.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 15 (0 generated)
wtc
Ryan: please review the entire CL. Marijn: please review ssl_client_socket.h and tls_socket_unittest.cc.
6 years, 4 months ago (2014-08-16 01:34:25 UTC) #1
wtc
The CQ bit was checked by wtc@chromium.org
6 years, 4 months ago (2014-08-20 21:15:56 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wtc@chromium.org/476313004/20001
6 years, 4 months ago (2014-08-20 21:16:47 UTC) #3
Ryan Sleevi
lgtm
6 years, 4 months ago (2014-08-20 22:04:43 UTC) #4
Ryan Sleevi
bah, published from wrong tab. One nit. https://codereview.chromium.org/476313004/diff/20001/net/socket/ssl_client_socket_pool.h File net/socket/ssl_client_socket_pool.h (right): https://codereview.chromium.org/476313004/diff/20001/net/socket/ssl_client_socket_pool.h#newcode121 net/socket/ssl_client_socket_pool.h:121: SSLConnectJobMessenger(const base::Closure& ...
6 years, 4 months ago (2014-08-20 22:06:35 UTC) #5
wtc
The CQ bit was unchecked by wtc@chromium.org
6 years, 4 months ago (2014-08-20 22:23:33 UTC) #6
wtc
Thanks for the review. https://codereview.chromium.org/476313004/diff/20001/net/socket/ssl_client_socket_pool.h File net/socket/ssl_client_socket_pool.h (right): https://codereview.chromium.org/476313004/diff/20001/net/socket/ssl_client_socket_pool.h#newcode121 net/socket/ssl_client_socket_pool.h:121: SSLConnectJobMessenger(const base::Closure& messenger_finished_callback); On 2014/08/20 ...
6 years, 4 months ago (2014-08-20 22:26:44 UTC) #7
wtc
The CQ bit was checked by wtc@chromium.org
6 years, 4 months ago (2014-08-20 22:26:51 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wtc@chromium.org/476313004/40001
6 years, 4 months ago (2014-08-20 22:27:28 UTC) #9
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_gpu on tryserver.chromium.gpu ...
6 years, 4 months ago (2014-08-21 00:19:29 UTC) #10
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-21 00:22:34 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: linux_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/linux_gpu/builds/55336) android_clang_dbg on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_clang_dbg/builds/8088)
6 years, 4 months ago (2014-08-21 00:22:34 UTC) #12
wtc
The CQ bit was checked by wtc@chromium.org
6 years, 4 months ago (2014-08-21 18:08:28 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wtc@chromium.org/476313004/40001
6 years, 4 months ago (2014-08-21 18:11:17 UTC) #14
commit-bot: I haz the power
6 years, 4 months ago (2014-08-21 21:30:59 UTC) #15
Message was sent while issue was closed.
Committed patchset #3 (40001) as 291192

Powered by Google App Engine
This is Rietveld 408576698