From f35a6ad77e770b57501b0e4afb7ff80a1a4e79ea Mon Sep 17 00:00:00 2001 From: Nyholm Date: Mon, 6 Dec 2021 19:53:06 +0100 Subject: [PATCH] [HttpClient] Double check if handle is complete --- src/Symfony/Component/HttpClient/Response/CurlResponse.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Symfony/Component/HttpClient/Response/CurlResponse.php b/src/Symfony/Component/HttpClient/Response/CurlResponse.php index ae596ba7eefd1..c22a593f0712f 100644 --- a/src/Symfony/Component/HttpClient/Response/CurlResponse.php +++ b/src/Symfony/Component/HttpClient/Response/CurlResponse.php @@ -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';