- :white_check_mark: AuthorizeRemoteTxRequests (type: boolean) (units: -)
- :x: ClockAlignedDataInterval (type: integer) (units: seconds)
-- :x: ConnectionTimeOut (type: integer) (units: seconds)
+- :white_check_mark: ConnectionTimeOut (type: integer) (units: seconds)
- :x: GetConfigurationMaxKeys (type: integer) (units: -)
- :white_check_mark: HeartbeatInterval (type: integer) (units: seconds)
- :x: LocalAuthorizeOffline (type: boolean) (units: -)
// 0 for disabling
private getConnectionTimeout(): number | undefined {
+ if (this.getConfigurationKey(StandardParametersKey.ConnectionTimeOut)) {
+ return parseInt(this.getConfigurationKey(StandardParametersKey.ConnectionTimeOut).value) ?? Constants.DEFAULT_CONNECTION_TIMEOUT;
+ }
if (!Utils.isUndefined(this.stationInfo.connectionTimeout)) {
return this.stationInfo.connectionTimeout;
}
if (!Utils.isUndefined(Configuration.getConnectionTimeout())) {
return Configuration.getConnectionTimeout();
}
- return 30;
+ return Constants.DEFAULT_CONNECTION_TIMEOUT;
}
// -1 for unlimited, 0 for disabling
static readonly DEFAULT_WORKER_POOL_MIN_SIZE = 4;
static readonly DEFAULT_WORKER_POOL_MAX_SIZE = 16;
static readonly DEFAULT_CHARGING_STATIONS_PER_WORKER = 1;
+
+ static readonly DEFAULT_CONNECTION_TIMEOUT = 30;
}