Skip to content

Commit 11e2eb6

Browse files
Merge branch '4.3' into 4.4
* 4.3: [HttpClient] workaround curl_multi_select() issue [CI] fix building local packages Increase limits for flakey appveyor tests
2 parents 3e15267 + bbcbbbe commit 11e2eb6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Response/CurlResponse.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,11 @@ private static function perform(CurlClientState $multi, array &$responses = null
286286
*/
287287
private static function select(CurlClientState $multi, float $timeout): int
288288
{
289+
if (\PHP_VERSION_ID < 70123 || (70200 <= \PHP_VERSION_ID && \PHP_VERSION_ID < 70211)) {
290+
// workaround https://bugs.php.net/76480
291+
$timeout = min($timeout, 0.01);
292+
}
293+
289294
return curl_multi_select($multi->handle, $timeout);
290295
}
291296

0 commit comments

Comments
 (0)