fix(e2b): release bounded read stream locks

Release the Web Stream reader after either completion or cancellation. Strengthen the oversized-file test so a regression that downloads content before applying the stat bound fails directly.
This commit is contained in:
creatixchu
2026-08-10 19:11:06 +08:00
parent b07844dd4c
commit 528c776e1b
2 changed files with 6 additions and 0 deletions
+1
View File
@@ -274,6 +274,7 @@ export class E2BFileSystem extends FileSystem {
// remote stream adds nothing actionable for the caller.
}
}
reader.releaseLock()
}
const whole = new Uint8Array(bytes)
let offset = 0