in reply to Bandwidth limiting for file downloads: What can Perl do?
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!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Bandwidth limiting for file downloads: What can Perl do?
by etj (Priest) on Apr 29, 2022 at 13:32 UTC | |
|
Re^2: Bandwidth limiting for file downloads: What can Perl do?
by Polyglot (Chaplain) on Apr 30, 2022 at 12:18 UTC | |
by Corion (Patriarch) on Apr 30, 2022 at 22:34 UTC | |
by Polyglot (Chaplain) on May 01, 2022 at 01:45 UTC | |
by Corion (Patriarch) on May 01, 2022 at 05:01 UTC |