Skip to content

[HttpClient] Fix activity tracking leading to negative timeout errors #59727

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

Merged
merged 1 commit into from
Feb 10, 2025

Conversation

nicolas-grekas
Copy link
Member

@nicolas-grekas nicolas-grekas commented Feb 7, 2025

Q A
Branch? 6.4
Bug fix? yes
New feature? no
Deprecations? no
Issues Fix #59041
License MIT

The error case leading to the linked issue is very hard to spot. I won't be able to provide a reproducer nor am I 100% sure that this will fix it. This patch comes solely from logical reasoning so I might have missed something, but hopefully this closes any possibility of passing a negative timeout to self::select().

The fix should be provided by the changed lines about $hasActivity and $lastActivity.
The rest is cleaning / hardening found meanwhile.

@nicolas-grekas nicolas-grekas merged commit e1ce353 into symfony:6.4 Feb 10, 2025
9 of 11 checks passed
@nicolas-grekas nicolas-grekas deleted the hc-timeout branch February 12, 2025 15:25
@petski
Copy link

petski commented Feb 14, 2025

.. but hopefully this closes ...

FWIW, I was hitting #59041 and ee3451b resolved it

This was referenced Feb 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants