Permalink
Browse files

Merge pull request #114 from zachbadgett/curl-multi-timeout

Changed CurlMulti::perform to pass a smaller timeout to CurlMulti::executeHandles
  • Loading branch information...
2 parents 7145159 + 2a8c7ce commit 8b5d360fb114b10c7bae4fd22142d087095fcfbf @mtdowling mtdowling committed Jul 30, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 Curl/CurlMulti.php
View
@@ -420,7 +420,7 @@ protected function perform()
if ($active) {
// Select the curl handles until there is any activity on any of the open file descriptors
// See https://github.com/php/php-src/blob/master/ext/curl/multi.c#L170
- $active = $this->executeHandles(true, 0.25);
+ $active = $this->executeHandles(true, 0.1);
} else {
// Sleep to prevent eating CPU because no requests are actually pending a select call
usleep(500);

0 comments on commit 8b5d360

Please sign in to comment.