Visitar URL original
fix(http): complete the request on timeout by arturovt · Pull Request #39807 · angular/angular · GitHub
The Wayback Machine - https://web.archive.org/web/20211019164424/https://github.com/angular/angular/pull/39807
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(http): complete the request on timeout #39807

Closed
wants to merge 1 commit into from
Closed

fix(http): complete the request on timeout #39807

wants to merge 1 commit into from

Conversation

@arturovt
Copy link
Contributor

@arturovt arturovt commented Nov 22, 2020

PR Checklist

PR Type

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • angular.io application / infrastructure changes
  • Other... Please describe:

What is the current behavior?

Issue Number: #26453

What is the new behavior?

Does this PR introduce a breaking change?

  • Yes
  • No
@pullapprove pullapprove bot requested review from IgorMinar and jessicajaniuk Nov 22, 2020
@google-cla google-cla bot added the cla: yes label Nov 22, 2020
@ngbot ngbot bot added this to the needsTriage milestone Nov 23, 2020
Copy link
Contributor

@jessicajaniuk jessicajaniuk left a comment

LGTM. Thanks! This is very straightforward.

@jessicajaniuk
Copy link
Contributor

@jessicajaniuk jessicajaniuk commented Nov 23, 2020 •

@petebacondarwin petebacondarwin requested review from alxhub and removed request for IgorMinar Jan 28, 2021
@ngbot ngbot bot removed this from the needsTriage milestone Jan 28, 2021
@ngbot ngbot bot added this to the Backlog milestone Jan 28, 2021
alxhub
alxhub approved these changes Jan 29, 2021
When using the [timeout attribute](https://xhr.spec.whatwg.org/#the-timeout-attribute) and an XHR
request times out, browsers trigger the `timeout` event (and execute the XHR's `ontimeout`
callback). Additionally, Safari 9 handles timed-out requests in the same way, even if no `timeout`
has been explicitly set on the XHR.

In the above cases, `HttpClient` would fail to capture the XHR's completing (with an error), so
the corresponding `Observable` would never complete.

PR Close #26453
@alxhub
Copy link
Contributor

@alxhub alxhub commented Feb 9, 2021 •

Merging just to master as this conflicts with the patch branches. @arturovt, would you be able to open a PR to the 11.2.x branch for this change?

@alxhub alxhub closed this in 61a0b6d Feb 9, 2021
@arturovt arturovt deleted the fix/issue-26453 branch Feb 9, 2021
@arturovt
Copy link
Contributor Author

@arturovt arturovt commented Feb 9, 2021

Merging just to master as this conflicts with the patch branches. @arturovt, would you be able to open a PR to the 11.2.x branch for this change?

Sure, I'll try that.

@angular-automatic-lock-bot
Copy link

@angular-automatic-lock-bot angular-automatic-lock-bot bot commented Mar 12, 2021

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Mar 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

4 participants