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(fromFetch): abort signal ignored if already aborted #5110

Merged
merged 2 commits into from
Nov 1, 2019

Conversation

bgotink
Copy link
Contributor

@bgotink bgotink commented Oct 26, 2019

Description:

Fix two issues with abort signal handling in fromFetch:

  • The signal property on the init object was modified, which could lead to issues if the init object is reused for multiple requests.
  • The fromFetch function basically ignored the incoming signal if it is already aborted.

Related issue (if exists):

Copy link
Collaborator

@cartant cartant left a comment

Choose a reason for hiding this comment

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

Thanks. LGTM, but there are some small changes I'd like to see made to the test.

spec/observables/dom/fetch-spec.ts Outdated Show resolved Hide resolved
Modifying the object can lead to problems if the init object
is reused in multiple calls to fromFetch.
Copy link
Collaborator

@cartant cartant left a comment

Choose a reason for hiding this comment

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

LGTM

@benlesh benlesh merged commit 0e4849a into ReactiveX:master Nov 1, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Dec 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants