From: Willy Tarreau Date: Fri, 16 Nov 2012 15:32:15 +0000 (+0100) Subject: MINOR: ssl: rename and document the tune.ssl.cachesize option X-Git-Tag: v1.5-dev13~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6ec58dbacc508dda74e617986faa007a8d3915c3;p=thirdparty%2Fhaproxy.git MINOR: ssl: rename and document the tune.ssl.cachesize option Its was initially called "tune.sslcachesize" but not documented, let's rename it and document it. --- diff --git a/doc/configuration.txt b/doc/configuration.txt index 84a3f9a483..9efd6025dc 100644 --- a/doc/configuration.txt +++ b/doc/configuration.txt @@ -475,6 +475,7 @@ The following keywords are supported in the "global" section : - tune.rcvbuf.server - tune.sndbuf.client - tune.sndbuf.server + - tune.ssl.cachesize - tune.zlib.memlevel - tune.zlib.windowsize @@ -849,6 +850,16 @@ tune.sndbuf.server to the kernel waiting for a large part of the buffer to be read before notifying haproxy again. +tune.ssl.cachesize + Sets the size of the global SSL session cache, in number of sessions. Each + entry uses approximately 600 bytes of memory. The default value may be forced + at build time, otherwise defaults to 20000. When the cache is full, the most + idle entries are purged and reassigned. Higher values reduce the occurrence + of such a purge, hence the number of CPU-intensive SSL handshakes by ensuring + that all users keep their session as long as possible. All entries are pre- + allocated upon startup and are shared between all processes if "nbproc" is + greater than 1. + tune.zlib.memlevel Sets the memLevel parameter in zlib initialization for each session. It defines how much memory should be allocated for the intenal compression diff --git a/src/cfgparse.c b/src/cfgparse.c index 569fcd354e..0ca7a6f974 100644 --- a/src/cfgparse.c +++ b/src/cfgparse.c @@ -563,7 +563,7 @@ int cfg_parse_global(const char *file, int linenum, char **args, int kwm) global.tune.chksize = atol(args[1]); } #ifdef USE_OPENSSL - else if (!strcmp(args[0], "tune.sslcachesize")) { + else if (!strcmp(args[0], "tune.ssl.cachesize")) { if (*(args[1]) == 0) { Alert("parsing [%s:%d] : '%s' expects an integer argument.\n", file, linenum, args[0]); err_code |= ERR_ALERT | ERR_FATAL;