Skip to content

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