10BC0 [HttpClient] Don't reset unused clients in data collector by HypeMC · Pull Request #62415 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@HypeMC
Copy link
Member
@HypeMC HypeMC commented Nov 16, 2025
Q A
Branch? 6.4
Bug fix? yes
New feature? no
Deprecations? no
Issues -
License MIT

The data collector resets all clients on each request. When multiple scoped clients use the throttling feature, every rate limiter is reset each time, causing locks that were never used to be acquired only to be immediately released. Since most of the time only one or none of the clients is used, this behavior is unnecessary and inefficient.

This PR ensures that only clients that were actually used are reset.

@carsonbot carsonbot added this to the 7.3 milestone Nov 16, 2025
@HypeMC HypeMC modified the milestones: 7.3, 6.4 Nov 16, 2025
@HypeMC HypeMC changed the base branch from 7.3 to 6.4 November 16, 2025 18:30
@HypeMC HypeMC force-pushed the dont-reset-unused-client branch from 495c66b to 44368f4 Compare November 16, 2025 18:31
@fabpot
Copy link
Member
fabpot commented Nov 20, 2025

Thank you @HypeMC.

@fabpot fabpot merged commit f3cb286 into symfony:6.4 Nov 20, 2025
10 of 11 checks passed
@HypeMC HypeMC deleted the dont-reset-unused-client branch November 20, 2025 11:28
This was referenced Nov 21, 2025
This was referenced Dec 7, 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.

5 participants

0