Open GoogleCodeExporter opened 8 years ago
As a step in that direction, example.php could show attaching some context data
to the request object (so the callback knows what triggered the request):
$rc = new RollingCurl("request_callback");
$rc->window_size = 20;
$i = 0;
foreach ($urls as $url) {
$request = new RollingCurlRequest($url);
$request->extra_data = $i++;
$rc->add($request);
}
$rc->execute();
Original comment by digitalbitstream@gmail.com
on 11 Jul 2011 at 8:01
Another use case for the above syntax
In your callback you see
http-equiv="refresh"
And wish to queue the target page to load (the page you loaded is probably
useless).
Original comment by digitalbitstream@gmail.com
on 11 Jul 2011 at 9:08
Original issue reported on code.google.com by
digitalbitstream@gmail.com
on 9 Jul 2011 at 5:13