Skip to content

Commit 35551f8

Browse files
committed
Revert "ok"
This reverts commit 17088e2.
1 parent b962a28 commit 35551f8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/bun.js/webcore/fetch.zig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -431,9 +431,9 @@ pub const FetchTasklet = struct {
431431
this.memory_reporter.discard(scheduled_response_buffer.allocatedSlice());
432432
readable.ptr.Bytes.onData(
433433
.{
434-
// TODO: We are still investigating the memory issues with owned_and_done
435-
// .owned_and_done = bun.ByteList.moveFromList(scheduled_response_buffer),
436-
.temporary_and_done = bun.ByteList.fromBorrowedSliceDangerous(chunk),
434+
.owned_and_done = bun.ByteList.moveFromList(scheduled_response_buffer),
435+
// Investigate: owned_and_done is the correct behavior, is having bigger memory usage than temporary_and_done
436+
// .temporary_and_done = bun.ByteList.fromBorrowedSliceDangerous(chunk),
437437
},
438438
bun.default_allocator,
439439
);

0 commit comments

Comments
 (0)