|
|
| There's more than one way to do things | |
| PerlMonks |
Re: Mass downloads. (N+5)by tye (Sage) |
| on May 20, 2005 at 15:40 UTC ( [id://459104]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
Time how long a fetch takes, add at least a few seconds to that, and then wait at least that long before starting the next fetch. That should do a pretty good job of preventing server overload for batches of requests that only get run rarely. Note that I mean for you to time each fetch. If the server gets bogged down, then your script should immediately notice that the previous fetch took longer and automatically compensate by waiting longer before trying the next fetch. Thanks. - tye
In Section
Perl Monks Discussion
|
|
||||||||||||||||||||||||||||||||||||||