Skip to content

Commit

Permalink
refactor(examples): Set session timeout for CTT to 10 minutes
Browse files Browse the repository at this point in the history
  • Loading branch information
jpfr committed Oct 25, 2023
1 parent d0db15c commit 8cd8351
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions examples/server_ctt.c
Original file line number Diff line number Diff line change
Expand Up @@ -1358,6 +1358,7 @@ int main(int argc, char **argv) {
/* Limit the number of SecureChannels and Sessions */
config->maxSecureChannels = 40;
config->maxSessions = 10;
config->maxSessionTimeout = 10 * 60 * 10000; /* 10 minutes */

/* Revolve the SecureChannel token every 300 seconds */
config->maxSecurityTokenLifetime = 300000;
Expand Down

0 comments on commit 8cd8351

Please sign in to comment.