Skip to content

Commit

Permalink
we need this
Browse files Browse the repository at this point in the history
  • Loading branch information
cirospaciari committed Jan 26, 2024
1 parent 96a9d43 commit 9053dab
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/bun.js/ipc.zig
Original file line number Diff line number Diff line change
Expand Up @@ -519,6 +519,10 @@ fn NewNamedPipeIPCHandler(comptime Context: type) type {
while (true) {
const result = decodeIPCMessage(slice, globalThis) catch |e| switch (e) {
error.NotEnoughBytes => {
// copy the remaining bytes to the start of the buffer
bun.copy(u8, this.ipc.incoming.ptr[0..slice.len], slice);
this.ipc.incoming.len = @truncate(slice.len);
log("hit NotEnoughBytes2", .{});
return;
},
error.InvalidFormat => {
Expand Down

0 comments on commit 9053dab

Please sign in to comment.