Cut pool merge stalls, and fix two relay bugs #46
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/merge-stalls"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Each provider refresh re-merged every channel and blocked requests for 5 to 10 s with 15 providers (about 15 times an hour). Profiling the real pool: a merge with nothing changed took 5.4 s, 3.4 s of it in
guideOwnersfor one guide id premplus puts on 4,107 channels (it compared every pair of names). It now groups channels through shared words with union-find: identical results on the real pool (3,307 misfiled, 0 differences), 368 ms instead of 3,745. Refreshes close together share one merge (at most one a minute), and each merge logs its time.Relay fixes: a refusal while the provider's account is full no longer counts toward redirect-only (sonymax's one connection is used by someone else, so its 401s were read as an IP block); the relay log names the providers it skipped instead of "no candidates"; and the dashboard counts relay connections as the pool's own. 141 tests pass.