I've looked at such limiters previously, and the most things I find are rate limiters (but they are more central to my interests too). There is HTTP::Tiny::Bandwidth, which claims to do bandwidth limiting, but I haven't used it. Maybe this would work for you to slow down downloads.
For hacking this into LWP::UserAgent, simply doing a usleep 0.5 or whatever in the content_cb callback would lower the bandwidth used, but it will still be quite bursty. I'm not aware of any convenient solution there, or for the async toolkits, so if you find anything relevant, a post about this is welcome!
In reply to Re: Bandwidth limiting for file downloads: What can Perl do?
by Corion
in thread Bandwidth limiting for file downloads: What can Perl do?
by Polyglot
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |