8000 bug #53671 [HttpClient] Fix pausing responses before they start when … · symfony/symfony@2e025f9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2e025f9

Browse files
bug #53671 [HttpClient] Fix pausing responses before they start when using curl (nicolas-grekas)
This PR was merged into the 5.4 branch. Discussion ---------- [HttpClient] Fix pausing responses before they start when using curl | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Issues | Fix #53622 | License | MIT Curl doesn't support pausing responses before they started, that's why the call to `curl_multi_remove_handle` is needed. But the removed line breaks tracking responses that did start. Commits ------- c6c5303 [HttpClient] Fix pausing responses before they start when using curl
2 parents 4a124ac + c6c5303 commit 2e025f9

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/Symfony/Component/HttpClient/Response/CurlResponse.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ public function __construct(CurlClientState $multi, $ch, ?array $options = null,
9595
$this->info['pause_handler'] = static function (float $duration) use ($ch, $multi, $execCounter) {
9696
if (0 < $duration) {
9797
if ($execCounter === $multi->execCounter) {
98-
$multi->execCounter = !\is_float($execCounter) ? 1 + $execCounter : \PHP_INT_MIN;
9998
curl_multi_remove_handle($multi->handle, $ch);
10099
}
101100

0 commit comments

Comments
 (0)
0