Let a signal abort a send queued behind a full send window (#90)

* Regression tests for aborting a send queued behind a full window

* Let a signal abort a send queued behind a full send window

* Log a queued send, tighten its regression tests and settle the decision record

* Take the send window's queue off an array so an abort cannot stall the loop

---------

Co-authored-by: Mikael Göransson <mikael.goransson@timewave.se>
This commit is contained in:
2026-09-06 18:17:01 +02:00
committed by GitHub
parent 0a7c491e55
commit 30eedc81ee
7 changed files with 243 additions and 17 deletions
+8
View File
@@ -1315,6 +1315,14 @@ describe('robustness', () => {
to: '46709771337',
})));
const long = await session.sendSms({
from: '46701113311',
message: 'x'.repeat(500),
to: '46709771337',
});
assert.equal(long.err, undefined, 'more segments than slots still completes, a slot at a time');
assert.equal(long.smsIds.length, 4);
assert.ok(peak <= 2, `peak was ${String(peak)}`);
});