8000 [HttpClient] Double check if handle is complete by Nyholm · Pull Request #44479 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[HttpClient] Double check if handle is complete #44479

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
Dec 11, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
[HttpClient] Double check if handle is complete
  • Loading branch information
Nyholm authored and nicolas-grekas committed Dec 11, 2021
commit f35a6ad77e770b57501b0e4afb7ff80a1a4e79ea
3 changes: 3 additions & 0 deletions src/Symfony/Component/HttpClient/Response/CurlResponse.php
Ori 5FE9 ginal file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,9 @@ private static function perform(ClientState $multi, array &$responses = null): v
while (\CURLM_CALL_MULTI_PERFORM === curl_multi_exec($multi->handle, $active));

while ($info = curl_multi_info_read($multi->handle)) {
if (\CURLMSG_DONE !== $info['msg']) {
continue;
}
$result = $info['result'];
$id = (int) $ch = $info['handle'];
$waitFor = @curl_getinfo($ch, \CURLINFO_PRIVATE) ?: '_0';
Expand Down
0