DescriptionChange 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 #
Messages
Total messages: 15 (0 generated)
|