Commit b90b2f7f authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

Fix inform interval - reduced to 100 seconds to prevent timeouts

parent c2fce33c
......@@ -8,6 +8,7 @@ all: acs-cwmp-service acs-fs-service acs-nbi-service acs-ui-service genieacs-con
patch -Np1 -d genieacs-1.2.5 < genieacs-1.2.5-ping_fix.patch
patch -Np1 -d genieacs-1.2.5 < genieacs-1.2.5-handle_unreachable_URL.patch
patch -Np1 -d genieacs-1.2.5 < genieacs-1.2.5-handle_empty_connection_URL.patch
patch -Np1 -d genieacs-1.2.5 < genieacs-1.2.5-fix_inform_interval.patch
cd genieacs-1.2.5 && npm install
cd genieacs-1.2.5 && NODE_OPTIONS="--max-old-space-size=3072" npm run build
......
diff -uNr genieacs-1.2.5/lib/init.ts genieacs-1.2.5-fix_inform_interval/lib/init.ts
--- genieacs-1.2.5/lib/init.ts 2021-03-13 10:06:19.000000000 +1030
+++ genieacs-1.2.5-fix_inform_interval/lib/init.ts 2026-03-22 20:47:14.474615688 +1030
@@ -62,7 +62,7 @@
// Password will be fixed a given device because Math.random() is seeded with devcie ID by default.
const password = Math.trunc(Math.random() * Number.MAX_SAFE_INTEGER).toString(36);
-const informInterval = 300;
+const informInterval = 100;
// Refresh values daily
const daily = Date.now(86400000);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment