Add config for server.keepAliveTimeout
This commit is contained in:
1 parent
40f7855754
commit
e53717cb6b
3 files changed
+8
-2
No files matched your search
+4
-1
@@ -81,6 +81,8 @@ if (!cluster.worker) {
|
||||
cert: config.get("CWMP_SSL_CERT")
|
||||
};
|
||||
|
||||
const keepAliveTimeout = config.get("CWMP_KEEP_ALIVE_TIMEOUT") as number;
|
||||
|
||||
process.on("uncaughtException", err => {
|
||||
if ((err as NodeJS.ErrnoException).code === "ERR_IPC_DISCONNECTED") return;
|
||||
logger.error({
|
||||
@@ -115,7 +117,8 @@ if (!cluster.worker) {
|
||||
SERVICE_ADDRESS,
|
||||
ssl,
|
||||
cwmp.listener,
|
||||
cwmp.onConnection
|
||||
cwmp.onConnection,
|
||||
keepAliveTimeout
|
||||
);
|
||||
})
|
||||
.catch(err => {
|
||||
|
||||
Reference in new issue
Block a user