forked from wolfSSL/wolfssl
Titan Session Cache
1. Added a new build option for a TITAN session cache that can hold just over 2 million session entires. 2. Reordered the cache options from largest to smallest.
This commit is contained in:
27
configure.ac
27
configure.ac
@@ -665,16 +665,16 @@ then
|
||||
fi
|
||||
|
||||
|
||||
# big cache
|
||||
AC_ARG_ENABLE([bigcache],
|
||||
[AS_HELP_STRING([--enable-bigcache],[Enable big session cache (default: disabled)])],
|
||||
[ ENABLED_BIGCACHE=$enableval ],
|
||||
[ ENABLED_BIGCACHE=no ]
|
||||
# TITAN cache
|
||||
AC_ARG_ENABLE([titancache],
|
||||
[AS_HELP_STRING([--enable-titancache],[Enable titan session cache (default: disabled)])],
|
||||
[ ENABLED_TITANCACHE=$enableval ],
|
||||
[ ENABLED_TITANCACHE=no ]
|
||||
)
|
||||
|
||||
if test "$ENABLED_BIGCACHE" = "yes"
|
||||
if test "$ENABLED_TITANCACHE" = "yes"
|
||||
then
|
||||
AM_CFLAGS="$AM_CFLAGS -DBIG_SESSION_CACHE"
|
||||
AM_CFLAGS="$AM_CFLAGS -DTITAN_SESSION_CACHE"
|
||||
fi
|
||||
|
||||
|
||||
@@ -691,6 +691,19 @@ then
|
||||
fi
|
||||
|
||||
|
||||
# big cache
|
||||
AC_ARG_ENABLE([bigcache],
|
||||
[AS_HELP_STRING([--enable-bigcache],[Enable big session cache (default: disabled)])],
|
||||
[ ENABLED_BIGCACHE=$enableval ],
|
||||
[ ENABLED_BIGCACHE=no ]
|
||||
)
|
||||
|
||||
if test "$ENABLED_BIGCACHE" = "yes"
|
||||
then
|
||||
AM_CFLAGS="$AM_CFLAGS -DBIG_SESSION_CACHE"
|
||||
fi
|
||||
|
||||
|
||||
# SMALL cache
|
||||
AC_ARG_ENABLE([smallcache],
|
||||
[AS_HELP_STRING([--enable-smallcache],[Enable small session cache (default: disabled)])],
|
||||
|
Reference in New Issue
Block a user