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

Remove AbortController after use #29

Merged

Conversation

danmaas
Copy link
Contributor

@danmaas danmaas commented Jun 8, 2020

After using an AbortController to stop an operation that took too long, remove the AbortController from the operation context.

Once an AbortController fires, it is permanently "used up" and will cause any future retry of the operation to fail immediately (in React Native on iOS, at least). This causes trouble if you combine apollo-link-timeout with a retry system like apollo-link-retry. It will attempt to retry a timed-out operation, but the retry will never succeed if a used-up AbortController is still attached to the request.

See discussion in issue #12.

remove the AbortController from the operation context.

Once an AbortController fires, it is permanently "used up" and will cause
any future retry of the operation to fail immediately. This causes trouble
if you combine `apollo-link-timeout` with a retry system like `apollo-link-retry`.

See discussion in issue drcallaway#12.
@drcallaway drcallaway merged commit e641692 into drcallaway:master Jun 10, 2020
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.

2 participants