Skip to content

Commit

Permalink
stream not consumed case
Browse files Browse the repository at this point in the history
  • Loading branch information
cirospaciari committed Apr 15, 2024
1 parent 89a0795 commit 8afc137
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/bun.js/api/server.zig
Original file line number Diff line number Diff line change
Expand Up @@ -1769,6 +1769,8 @@ fn NewRequestContext(comptime ssl_enabled: bool, comptime debug_mode: bool, comp
// the promise is pending
// Case 2:
// User ignored the body and the connection was aborted or ended
// Case 3:
// Stream was not consumed and the connection was aborted or ended
if (body.value == .Locked) {
body.value.toErrorInstance(JSC.toTypeError(.ABORT_ERR, "Request aborted", .{}, this.server.globalThis), this.server.globalThis);
}
Expand Down

0 comments on commit 8afc137

Please sign in to comment.