Skip to content

Commit dec66b7

Browse files
committed
shm cache: increase default maximum number of active sessions
from 500 to 2000 and allow configuration of max 1Mb of session data for a single session Signed-off-by: Hans Zandbelt <[email protected]>
1 parent 94bd371 commit dec66b7

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

ChangeLog

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
03/10/2023
2+
- shm cache: increase default maximum number of active sessions from 500 to 2000
3+
- shm cache: allow configuration of max 1Mb of session data for a single session
4+
15
03/09/2023
26
- add support for OP "signed_jwks_uri" with "OIDCProviderSignedJwksUri <uri> <jwk>"
37
- don't pull JWKs when the id_token was signed with a symmetric key

src/config.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,9 @@
9696
/* default duration in seconds after which retrieved JWS should be refreshed */
9797
#define OIDC_DEFAULT_JWKS_REFRESH_INTERVAL 3600
9898
/* default max cache size for shm */
99-
#define OIDC_DEFAULT_CACHE_SHM_SIZE 500
99+
#define OIDC_DEFAULT_CACHE_SHM_SIZE 2000
100100
/* default max cache entry size for shm: # value + # key + # overhead */
101101
#define OIDC_DEFAULT_CACHE_SHM_ENTRY_SIZE_MAX 16384 + 512 + 17
102-
/* minimum size of a cache entry */
103-
#define OIDC_MINIMUM_CACHE_SHM_ENTRY_SIZE_MAX 8192 + 512 + 17
104102
/* for issued-at timestamp (iat) checking */
105103
#define OIDC_DEFAULT_IDTOKEN_IAT_SLACK 600
106104
/* for file-based caching: clean interval in seconds */

src/parse.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ const char* oidc_parse_session_type(apr_pool_t *pool, const char *arg, int *type
353353
/* minimum size of a SHM cache entry */
354354
#define OIDC_MINIMUM_CACHE_SHM_ENTRY_SIZE_MAX 8192 + 512 + 17 // 8Kb plus overhead
355355
/* maximum size of a SHM cache entry */
356-
#define OIDC_MAXIMUM_CACHE_SHM_ENTRY_SIZE_MAX 1024 * 512 // 512Kb incl. overhead
356+
#define OIDC_MAXIMUM_CACHE_SHM_ENTRY_SIZE_MAX 1024 * 1024 // 1Mb incl. overhead
357357

358358
/*
359359
* parse the slot size of a SHM cache entry

0 commit comments

Comments
 (0)