From 87837648dafa664a6ef99454447f087625f15326 Mon Sep 17 00:00:00 2001 From: Diego de Estrada Date: Wed, 2 Apr 2014 15:38:37 -0300 Subject: [PATCH] Use select() syscall to avoid busy waiting --- library/Requests/Transport/cURL.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/library/Requests/Transport/cURL.php b/library/Requests/Transport/cURL.php index 678ab7363..59647987a 100755 --- a/library/Requests/Transport/cURL.php +++ b/library/Requests/Transport/cURL.php @@ -156,6 +156,9 @@ public function request_multiple($requests, $options) { do { $active = false; + if ($active) { + curl_multi_select($multihandle); + } do { $status = curl_multi_exec($multihandle, $active); }