Skip to content

Commit

Permalink
fix(ext/fetch): make EventSource more robust (#22493)
Browse files Browse the repository at this point in the history
This PR fixes all unhandled rejections and resource leaks found while
adding a test for #22368.
  • Loading branch information
0f-0b committed Mar 24, 2024
1 parent ae52b49 commit d263c63
Show file tree
Hide file tree
Showing 2 changed files with 161 additions and 178 deletions.
2 changes: 1 addition & 1 deletion ext/fetch/26_fetch.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 169,7 @@ async function mainFetch(req, recursive, terminator) {
try {
resp = await opFetchSend(requestRid);
} catch (err) {
if (terminator.aborted) return;
if (terminator.aborted) return abortedNetworkError();
throw err;
} finally {
if (cancelHandleRid !== null) {
Expand Down
Loading

0 comments on commit d263c63

Please sign in to comment.