diff options
| author | Christophe Besson <cbesson@gmail.com> | 2026-09-12 13:48:09 +0200 |
|---|---|---|
| committer | Christophe Besson <cbesson@gmail.com> | 2026-09-12 16:36:54 +0200 |
| commit | e16be41ce2862f78d98efc6b44f957dc98e96280 (patch) | |
| tree | f96d2759a71faf11d19c427e683766a020e577a7 /packages/meshbay-node | |
| parent | 98e27c8f251022320020716a9ef7a5b892ad2b61 (diff) | |
| download | meshbay-e16be41ce2862f78d98efc6b44f957dc98e96280.tar.gz | |
fix(hub): refuse to start with more than one worker
`_connected_nodes`, `_node_groups`, `_webrtc_answers` and the relay registry
are per-process dictionaries. With two workers a node registers in one and
the WebRTC offers for it arrive at the other, so the symptom is a node that
is intermittently offline for half its members — which reads as a network
problem, a NAT problem, anything but a configuration line.
`server.workers` has always defaulted to 1 and the constraint was written
down nowhere. One line at startup, and a function rather than an inline check
so it can be tested.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01T4YmK41VsEURWFdop4EEeT
Diffstat (limited to 'packages/meshbay-node')
0 files changed, 0 insertions, 0 deletions