Skip to content

Fix abort listener cleanup in fetchWithTimeout#1828

Open
MukundaKatta wants to merge 1 commit intoopenai:masterfrom
MukundaKatta:codex/openai-node-remove-abort-listener
Open

Fix abort listener cleanup in fetchWithTimeout#1828
MukundaKatta wants to merge 1 commit intoopenai:masterfrom
MukundaKatta:codex/openai-node-remove-abort-listener

Conversation

@MukundaKatta
Copy link
Copy Markdown

Summary

  • remove the custom abort listener after fetch completion in fetchWithTimeout
  • add a regression test covering successful cleanup of the listener

Testing

  • ./node_modules/.bin/jest tests/index.test.ts --runInBand --testNamePattern=custom signal|fetchWithTimeout removes custom abort listener after success|normalized method
  • ./scripts/build

Closes #1811

@MukundaKatta MukundaKatta requested a review from a team as a code owner April 18, 2026 08:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fetchWithTimeout does not remove abort event listener on successful completion, preventing process exit on Deno

1 participant