diff options
author | Matt Mastracci <matthew@mastracci.com> | 2024-05-21 11:45:33 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-21 17:45:33 +0000 |
commit | 625d09937ae88bfdaedb4d328bc59c001724e5d7 (patch) | |
tree | c324ea5fcf4a61d6db95ef44b99a7039735c1e36 /tools/jsdoc_checker.js | |
parent | a5111fbc4d7daaa9056d0e4b21b3d54a009a7f99 (diff) |
fix(ext/web): fix potential leak of unread buffers (#23923)
Because the buffers are `MaybeUninit<V8Slice<u8>`, and the owner of the
`BoundedBufferChannel` is not obligated to read each and every bit of
data, we may find that some buffers were not automatically dropped if
unread by the time the `BoundedBufferChannelInner` is dropped.
Possible repro:
```
Deno.serve(() => new Response(new ReadableStream({ start(controller) { controller.enqueue(new Uint8Array(100_000_000)) } })));
```
```bash
while true; do curl localhost:8000 | dd count=1; done
```
Diffstat (limited to 'tools/jsdoc_checker.js')
0 files changed, 0 insertions, 0 deletions