Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(core): increase maxSecureChannels to 100, fix check for enough ch… #6553

Open
wants to merge 1 commit into
base: 1.4
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion plugins/ua_config_default.c
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ setDefaultConfig(UA_ServerConfig *conf, UA_UInt16 portNumber) {
conf->modellingRulesOnInstances = true;

/* Limits for SecureChannels */
conf->maxSecureChannels = 40;
conf->maxSecureChannels = 100;
conf->maxSecurityTokenLifetime = 10 * 60 * 1000; /* 10 minutes */

/* Limits for Sessions */
Expand Down
2 changes: 1 addition & 1 deletion src/server/ua_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -734,7 +734,7 @@ UA_Server_run_startup(UA_Server *server) {

/* Are there enough SecureChannels possible for the max number of sessions? */
if(config->maxSecureChannels != 0 &&
(config->maxSessions == 0 || config->maxSessions >= config->maxSecureChannels)) {
(config->maxSessions == 0 || config->maxSessions > config->maxSecureChannels)) {
UA_LOG_WARNING(config->logging, UA_LOGCATEGORY_SERVER,
"Maximum SecureChannels count not enough for the "
"maximum Sessions count");
Expand Down
Loading