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 management of shorter-than-requested timeouts with AmpHttpClient#36960

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
fabpot merged 1 commit intosymfony:5.1fromnicolas-grekas:hc-amp-fix
May 26, 2020

Conversation

@nicolas-grekas
Copy link
Member

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

This will fix the most transient test in our CI, which was not a false positive.

Loop::cancel($delay);
}
while (true) {
self::$delay =Loop::delay(1000 *$remaining, [Loop::class,'stop']);
Copy link
MemberAuthor

@nicolas-grekasnicolas-grekasMay 25, 2020
edited
Loading

Choose a reason for hiding this comment

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

@kelunik there is something I don't get here that you might want to check once this PR is merged. It looks like the delay defined here is not respected.

To see what I mean, checkout this PR, then adddump([$timeout, $remaining]); after the second "if" below, and run tests with./phpunit src/Symfony/Component/HttpClient/ --filter Amp.*NotATimeout.
You'll see something like:

array:2 [  0 => 0.9  1 => 0.87336587905884]

which means that the delay expired0.87336587905884 seconds earlier than expected.
Do I miss something or could this be a bug in AMP's event loop?

Copy link
Contributor

Choose a reason for hiding this comment

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

I've added two failing tests inamphp/amp#319, one of those is expected to fail, the other isn't.

nicolas-grekas reacted with thumbs up emoji
@fabpot
Copy link
Member

Thank you@nicolas-grekas.

@fabpotfabpot merged commit4739835 intosymfony:5.1May 26, 2020
@nicolas-grekasnicolas-grekas deleted the hc-amp-fix branchMay 26, 2020 06:58
@fabpotfabpot mentioned this pull requestMay 26, 2020
nicolas-grekas added a commit that referenced this pull requestJun 9, 2020
…Client (nicolas-grekas)This PR was merged into the 5.1 branch.Discussion----------[HttpClient] improve monitoring of timeouts with AmpHttpClient| Q             | A| ------------- | ---| Branch?       | 5.1| Bug fix?      | yes| New feature?  | no| Deprecations? | no| Tickets       | -| License       | MIT| Doc PR        | -Replaces#36960Commits-------548818d [HttpClient] improve monitoring of timeouts with AmpHttpClient
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@fabpotfabpotfabpot approved these changes

+1 more reviewer

@kelunikkelunikkelunik left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

5.1

Development

Successfully merging this pull request may close these issues.

4 participants

@nicolas-grekas@fabpot@kelunik@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp