You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
wireClient: unbounded offline queue, no invoke timeout, reconnect stampede #130
src/wireClient.ts:100-115: while disconnected, every invoke() is pushed into queued with no size limit, and flushQueue() (wireClient.ts:84-87) fires the whole backlog at once on reconnect. Inflight calls are only settled by a matching reply (wireClient.ts:145-161); there is no timeout, so a handler that hangs in main leaves the renderer promise pending forever (button stuck busy).
Impact
The renderer has many interval pollers (devServerStatus every 3-5s, refreshStatus every 60s, summaries every 2s). During a web-server outage these pile into queued unboundedly, and on reconnect they all hit the main process simultaneously: a self-inflicted thundering herd on top of the memory growth.
Fix direction
Cap the offline queue (drop oldest, or coalesce repeat poller calls).
Add a per-invoke timeout that rejects and surfaces an error.
Activity