openvibers/openvibe.network Commits

Registry: first health poll 5 s after boot (Network was reporting itself down)

OP OpenVibers committed 23 Sept 2026 · 5640bb7e4a · 1 file, +3 −1


Changes

ddiff --git a/server/registry/ecosystem.js b/server/registry/ecosystem.js
iindex c69e4414..6a19e562 100644
---- a/server/registry/ecosystem.js
++++ b/server/registry/ecosystem.js
@@@ -54,7 +54,9 @@ function createEcosystemRegistry({ issuer, internalOverrides = {}, fetchImpl = g
function start() {
if (timer) return;
const loop = async () => { try { await pollAll(); } catch { /* one bad poll never stops the loop */ } timer = setTimeout(loop, pollMs); if (timer.unref) timer.unref(); };
-- loop();
++ // First poll a few seconds in: this process is one of the services it checks, and it is not listening yet.
++ timer = setTimeout(loop, 5000);
++ if (timer.unref) timer.unref();
}
function stop() { if (timer) clearTimeout(timer); timer = null; }