Skip to content

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

Closed
arturovt wants to merge 1 commit intoangular:masterfrom
arturovt:fix/issue-26453
Closed

fix(http): complete the request on timeout#39807
arturovt wants to merge 1 commit intoangular:masterfrom
arturovt:fix/issue-26453

Conversation

@arturovt
Copy link
Copy Markdown
Contributor

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

@google-cla google-cla bot added the cla: yes label Nov 22, 2020
@jessicajaniuk jessicajaniuk added the area: common/http Issues related to HTTP and HTTP Client label Nov 23, 2020
@ngbot ngbot bot added this to the needsTriage milestone Nov 23, 2020
Copy link
Copy Markdown
Contributor

@jessicajaniuk jessicajaniuk left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks! This is very straightforward.

@jessicajaniuk jessicajaniuk added action: presubmit The PR is in need of a google3 presubmit target: patch This PR is targeted for the next patch release labels Nov 23, 2020
@jessicajaniuk
Copy link
Copy Markdown
Contributor

jessicajaniuk commented Nov 23, 2020

Presubmit

@jessicajaniuk jessicajaniuk added action: review The PR is still awaiting reviews from at least one requested reviewer type: bug/fix and removed action: presubmit The PR is in need of a google3 presubmit labels Nov 23, 2020
@petebacondarwin petebacondarwin requested review from alxhub and removed request for IgorMinar January 28, 2021 10:18
@petebacondarwin petebacondarwin added the action: presubmit The PR is in need of a google3 presubmit label Jan 28, 2021
@ngbot ngbot bot modified the milestones: needsTriage, Backlog Jan 28, 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
@petebacondarwin petebacondarwin removed the action: review The PR is still awaiting reviews from at least one requested reviewer label Feb 2, 2021
@jessicajaniuk jessicajaniuk added action: merge The PR is ready for merge by the caretaker and removed action: presubmit The PR is in need of a google3 presubmit labels Feb 9, 2021
@alxhub alxhub added target: minor This PR is targeted for the next minor release and removed target: patch This PR is targeted for the next patch release labels Feb 9, 2021
@alxhub
Copy link
Copy Markdown
Member

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 February 9, 2021 22:49
@arturovt
Copy link
Copy Markdown
Contributor Author

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
Copy Markdown

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.

Labels

action: merge The PR is ready for merge by the caretaker area: common/http Issues related to HTTP and HTTP Client cla: yes target: minor This PR is targeted for the next minor release type: bug/fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants