Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f35a6ad

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

File tree

1 file changed

+3
-0
lines changed
Filter options

1 file changed

+3
-0
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpClient/Response/CurlResponse.php
+3Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.