HttpRequestPool chain
--SKIPIF--
<?php
-inlcude 'skip.inc';
+include 'skip.inc';
checkcls('HttpRequest');
checkcls('HttpRequestPool');
?>
HttpRequest::METH_GET,
array(
'redirect' => 5,
- 'timeout' => 50,
- 'connecttimeout' => 10,
+ 'compress' => GZIP,
+ 'timeout' => TOUT,
+ 'connecttimeout' => TOUT,
'lastmodified' => is_file($file)?filemtime($file):0
)
)
$url,
HttpRequest::METH_GET,
array(
- 'redirect' => 3,
- 'timeout' => 25,
- 'compress' => true,
- 'connecttimeout' => 10,
+ 'redirect' => 5,
+ 'compress' => GZIP,
+ 'timeout' => TOUT,
+ 'connecttimeout' => TOUT,
'lastmodified' => is_file($file)?filemtime($file):0
)
)
}
}
+define('GZIP', true);
+define('TOUT', 50);
define('RMAX', 10);
chdir(dirname(__FILE__));
$time = microtime(true);
-new Pool();
+$p = new Pool();
printf("Elapsed: %0.3fs\n", microtime(true)-$time);
echo "Done\n";