Add config for server.keepAliveTimeout

This commit is contained in:
Zaid Abdulla committed 2019-07-25 20:36:29 -07:00
1 parent 40f7855754
commit e53717cb6b
3 files changed
+8 -2

No files matched your search

+1
View File
@@ -48,6 +48,7 @@ const options = {
CWMP_SSL_KEY: { type: "string", default: "" },
CWMP_LOG_FILE: { type: "path", default: "" },
CWMP_ACCESS_LOG_FILE: { type: "path", default: "" },
CWMP_KEEP_ALIVE_TIMEOUT: { type: "int", default: 0 },
NBI_WORKER_PROCESSES: { type: "int", default: 0 },
NBI_PORT: { type: "int", default: 7557 },
+3 -1
View File
@@ -55,7 +55,8 @@ export function start(
networkInterface,
ssl,
_listener,
onConnection?
onConnection?,
keepAliveTimeout: number = 0
): void {
listener = _listener;
@@ -76,6 +77,7 @@ export function start(
if (onConnection != null) server.on("connection", onConnection);
}
if (keepAliveTimeout) server.keepAliveTimeout = keepAliveTimeout;
server.listen(port, networkInterface);
}