8000 [HttpClient] Double check if handle is complete · symfony/symfony@f35a6ad · GitHub
[go: up one dir, main page]

Skip to content

Commit f35a6ad

Browse files
Nyholmnicolas-grekas
authored andcommitted
[HttpClient] Double check if handle is complete
1 parent 53a45b2 commit f35a6ad

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,9 @@ private static function perform(ClientState $multi, array &$responses = null): v
277277
while (\CURLM_CALL_MULTI_PERFORM === curl_multi_exec($multi->handle, $active));
278278

279279
while ($info = curl_multi_info_read($multi->handle)) {
280+
if (\CURLMSG_DONE !== $info['msg']) {
281+
continue;
282+
}
280283
$result = $info['result'];
281284
$id = (int) $ch = $info['handle'];
282285
$waitFor = @curl_getinfo($ch, \CURLINFO_PRIVATE) ?: '_0';

0 commit comments

Comments
 (0)
0