diff --git a/plugins/ua_config_default.c b/plugins/ua_config_default.c index e13b99192a4..f2746d29cc0 100644 --- a/plugins/ua_config_default.c +++ b/plugins/ua_config_default.c @@ -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 */ diff --git a/src/server/ua_server.c b/src/server/ua_server.c index f777ecd41c1..10f42757282 100644 --- a/src/server/ua_server.c +++ b/src/server/ua_server.c @@ -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");