Stop refusing only once the held messages are down to half, so a full window warns once, and name the octets in the warning
Mirror / push (push) Successful in 5s
Test / test (22) (pull_request) Successful in 31s
Test / lint (pull_request) Successful in 22s
Test / test (18) (pull_request) Successful in 30s
Test / test (20) (pull_request) Successful in 30s
Test / test (24) (pull_request) Successful in 31s
Test / test (26) (pull_request) Successful in 31s
Mirror / push (push) Successful in 5s
Test / test (22) (pull_request) Successful in 31s
Test / lint (pull_request) Successful in 22s
Test / test (18) (pull_request) Successful in 30s
Test / test (20) (pull_request) Successful in 30s
Test / test (24) (pull_request) Successful in 31s
Test / test (26) (pull_request) Successful in 31s
This commit is contained in:
@@ -1567,6 +1567,16 @@ describe('held message bounds', () => {
|
||||
|
||||
assert.equal(answers.at(-1), 'ESME_ROK');
|
||||
assert.equal(received.length, defaults.maxHeldMessages);
|
||||
|
||||
// A peer keeping its window full crosses the bound on every answer, and that is still one warning.
|
||||
await received[1]?.sendResp();
|
||||
await new Promise(resolve => { setImmediate(resolve); });
|
||||
await incoming.handle(submitPdu(defaults.maxHeldMessages + 2));
|
||||
await incoming.handle(submitPdu(defaults.maxHeldMessages + 3));
|
||||
await incoming.handle(submitPdu(defaults.maxHeldMessages + 4));
|
||||
|
||||
assert.equal(answers.at(-1), 'ESME_RTHROTTLED');
|
||||
assert.equal(warnings.length, 1);
|
||||
incoming.clear();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user