Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: abort signal when request stream closed #82

Merged
merged 2 commits into from
Mar 28, 2024

Conversation

SgtPooki
Copy link
Member

@SgtPooki SgtPooki commented Mar 28, 2024

  • chore: make until-death script wait longer for gateway
  • fix: abort signal when request stream is closed

Title

fix: abort signal when request stream closed

Description

Detailed description of this fix is in #18 (comment)

Notes & open questions

Change checklist

  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation if necessary (this includes comments as well)
  • I have added tests that prove my fix is effective or that my feature works

Copy link
Member Author

@SgtPooki SgtPooki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

self review

this.log('request aborted by client')
opController.abort()
const cleanupFn = (): void => {
if (request.raw.readableAborted) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

request.raw.aborted is deprecated. message says to use readable.message.aborted but we don't have access to that?

@SgtPooki SgtPooki merged commit 0701b3c into main Mar 28, 2024
5 checks passed
@SgtPooki SgtPooki deleted the fix/preventing-extra-work branch March 28, 2024 02:43
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.

1 participant