Reject a renumbered multipart total and check abort before the send window

This commit is contained in:
2026-08-27 12:43:17 +02:00
parent 8a182604b7
commit ff3667e120
5 changed files with 63 additions and 2 deletions
+5
View File
@@ -127,6 +127,11 @@ export class Session extends EventEmitter<SessionEvents> {
if (this.closed) return { err: new Error('Session is closed') };
// Before the window, or a full window makes an aborted call wait for a slot it will not use.
if (options.signal?.aborted === true) {
return { err: new Error('Aborted before the request was sent') };
}
await this.window.acquire();
try {