mirror of
https://github.com/jambonz/sbc-sip-sidecar.git
synced 2026-10-04 02:04:20 +00:00
* fix: add mutex to prevent concurrent regbot rebuilds (#2719) updateCarrierRegbots was called via .then() (not awaited) from checkStatus, allowing concurrent invocations to race on the shared regbots array. The last writer wins, and concurrent cleanup can stop() regbots still in use, permanently breaking their timer chain. Add a boolean mutex (rebuildInProgress) with try/finally to skip concurrent invocations. Promote rebuild completion log from debug to info for production visibility. Add standalone test demonstrating both the bug and the fix. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * raise default minimum registration expires from 30s to 90s Prevents overly aggressive re-registration cycles when the registrar returns a short Expires value, reducing regbot churn. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
11 lines
294 B
JavaScript
11 lines
294 B
JavaScript
require('./docker_start');
|
|
require('./create-test-db');
|
|
require('./regbot-tests');
|
|
require('./regbot-unit-test');
|
|
require('./regbot-concurrent-rebuild-test');
|
|
require('./sip-register-tests');
|
|
require('./sip-options-tests');
|
|
require('./cli-tests');
|
|
require('./docker_stop');
|
|
require('./utils');
|