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

Issue 679473002: Allow two SSL Server Socket parameters to be tuned by the caller (Closed)

Created:
6 years, 1 month ago by GusFernandez
Modified:
6 years, 1 month ago
CC:
chromium-reviews, cbentzel+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Allow two SSL Server Socket parameters to be tuned by the caller Before calling EnableSSLServerSockets, you can now use SetSSLServerSocketParameters to set the max number of Session ID cache entries as well as the ssl session cache timeouts when using nss. Currently unimplemented for OpenSSL. BUG=426630

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -2 lines) Patch
M net/socket/ssl_server_socket.h View 1 chunk +10 lines, -0 lines 0 comments Download
M net/socket/ssl_server_socket_nss.cc View 3 chunks +17 lines, -2 lines 0 comments Download
M net/socket/ssl_server_socket_openssl.cc View 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (3 generated)
GusFernandez
6 years, 1 month ago (2014-10-23 22:51:52 UTC) #2
GusFernandez
6 years, 1 month ago (2014-10-24 01:15:20 UTC) #3
GusFernandez
6 years, 1 month ago (2014-10-24 01:17:43 UTC) #5
Ryan Sleevi
I'm not happy introducing new globals, nor do I like yielding control of critical security ...
6 years, 1 month ago (2014-10-24 01:20:38 UTC) #7
dougsteed
On 2014/10/24 01:20:38, Ryan Sleevi wrote: > I'm not happy introducing new globals, nor do ...
6 years, 1 month ago (2014-10-24 16:07:46 UTC) #8
davidben
In general, we don't maintain any backwards-compatibility promises on ABI or API at the net ...
6 years, 1 month ago (2014-10-24 16:32:53 UTC) #9
dougsteed
On 2014/10/24 16:32:53, David Benjamin wrote: > In general, we don't maintain any backwards-compatibility promises ...
6 years, 1 month ago (2014-10-24 17:23:18 UTC) #10
GusFernandez
6 years, 1 month ago (2014-10-29 20:39:59 UTC) #11
On 2014/10/24 17:23:18, dougsteed wrote:
> On 2014/10/24 16:32:53, David Benjamin wrote:
> > In general, we don't maintain any backwards-compatibility promises on ABI or
> API
> > at the net stack boundary. If some extra parameters need to be added
> somewhere,
> > we'll add them there and update consumers in Chromium. Downstream consumers
> are
> > responsible for updating their end, as with anything else in Chromium.
> > 
> > Ideally this should be a parameter on the server socket. Unfortunately,
NSS's
> > API is really poor and seems to only maintains a single global session cache
> > anyway, so that's not possible. Which... actually I hope we never run more
> than
> > one of these in the browser process. The only consumer I see in Chromium is
> > remoting. BoringSSL is the future and that provides a much less useless
API...
> > 
> > What exactly are cast's clients? Specifically, are all your clients remotely
> > modern[*]? If so, there's no need for a session cache at all and you can
just
> > use session tickets. Session tickets do not require server memory. There
does
> > appear to be an SSL_NO_CACHE option and that one is not a global. As for
> > expiration, it appears NSS doesn't even let you configure session ticket
> > lifetimes at all and hardcodes them to two days anyway. I actually suspect
the
> > lifetime will have no effect on performance.
> > 
> > That said, NSS does appear to allocate all its memory up-front, so the
memory
> > thing isn't a no-op. Ryan, do you know what the consumers of SSLServerSocket
> > are? Could we maybe just disable session caches in favor of session tickets
> > everywhere, rather than add a random global that we'll have to remember to
get
> > rid of when we lose NSS?
> > 
> > 
> > [*] For browsers, see https://www.ssllabs.com/ssltest/clients.html
> 
> Session tickets are not an option for us right now. 
> They are not supported on either our iOS or Android cast senders.

Closing this CL in favor of https://codereview.chromium.org/687343002/

Powered by Google App Engine
This is Rietveld 408576698