diff --git a/include/common/defaults.h b/include/common/defaults.h index ae49263a1..9b54276b2 100644 --- a/include/common/defaults.h +++ b/include/common/defaults.h @@ -191,4 +191,9 @@ #define LISTEN_DEFAULT_CIPHERS NULL #endif +/* ssl cache size */ +#ifndef SSLCACHESIZE +#define SSLCACHESIZE 20000 +#endif + #endif /* _COMMON_DEFAULTS_H */ diff --git a/src/haproxy.c b/src/haproxy.c index 5e6ee4014..97a403999 100644 --- a/src/haproxy.c +++ b/src/haproxy.c @@ -132,7 +132,7 @@ struct global global = { .maxrewrite = MAXREWRITE, .chksize = BUFSIZE, #ifdef USE_OPENSSL - .sslcachesize = 20000, + .sslcachesize = SSLCACHESIZE, #endif #ifdef USE_ZLIB .zlibmemlevel = 8,