Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[HttpClient] Fix handling timeouts when responses are destructed#42896

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
nicolas-grekas merged 1 commit intosymfony:4.4fromnicolas-grekas:hc-timeout44
Sep 7, 2021

Conversation

@nicolas-grekas
Copy link
Member

QA
Branch?4.4
Bug fix?yes
New feature?no
Deprecations?no
Tickets-
LicenseMIT
Doc PR-

Spotted while giving a workshop on HttpClient at WebSummerCamp:

When responses are destructed, the timeout is counted from the call to the destructor. This means that when 10 concurrent requests are destructed and they all timeout, the code waits for10 * $timeout before giving back control.

This PR fixes it by counting the timeouts from the first timeout when they happen in chain on destruction.

@carsonbotcarsonbot added this to the4.4 milestoneSep 6, 2021
@nicolas-grekasnicolas-grekas changed the title[Translation] Add missing Romanian translations[HttpClient] Fix handling timeouts when responses are destructedSep 6, 2021
@nicolas-grekas
Copy link
MemberAuthor

Merge conflicts with 5.3 should be solved using#42894

@carsonbot
Copy link

Hey!

I think@Toflar has recently worked with this code. Maybe they can help review this?

Cheers!

Carsonbot

@nicolas-grekasnicolas-grekas merged commit6645885 intosymfony:4.4Sep 7, 2021
@nicolas-grekasnicolas-grekas deleted the hc-timeout44 branchSeptember 7, 2021 07:17
This was referencedSep 28, 2021
nicolas-grekas added a commit that referenced this pull requestDec 11, 2021
… requests (nicolas-grekas)This PR was merged into the 4.4 branch.Discussion----------[HttpClient] Don't reset timeout counter when initializing requests| Q             | A| ------------- | ---| Branch?       | 4.4| Bug fix?      | yes| New feature?  | no| Deprecations? | no| Tickets       |Fix#44544| License       | MIT| Doc PR        | -Same as#42896 but on initialize.Commits-------8f3bdeb [HttpClient] Don't reset timeout counter when initializing requests
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

4.4

Development

Successfully merging this pull request may close these issues.

2 participants

@nicolas-grekas@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp