Skip to content

Commit af2bdad

Browse files
committed
curl_multi_select(): timeout must be positive #59041
Signed-off-by: Phil E. Taylor <phil@phil-taylor.com>
1 parent 2e85f07 commit af2bdad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ private static function select(ClientState $multi, float $timeout): int
354354
}
355355
}
356356

357-
if (0 !== $selected = curl_multi_select($multi->handle, $timeout)) {
357+
if (0 !== $selected = curl_multi_select($multi->handle, $timeout < 0 ? $timeout : 1.1)) {
358358
return $selected;
359359
}
360360

0 commit comments

Comments
 (0)