in reply to Re: Bandwidth limiting for file downloads: What can Perl do?
in thread Bandwidth limiting for file downloads: What can Perl do?
Update: I found a question asked some years ago on SO that posted a code snippet which invoked the ':content_cb' callback, and I tried it. It changes absolutely nothing except that the downloaded file is misnamed (becomes "/content_cb", instead of the .html file that it should be). No change whatsoever in speed, regardless of the number put into "usleep". Adding a print line resulted in nothing as well--no output to the screen, so I don't think the subroutine is actually running, and it seems LWP::UserAgent is conflating the ':content_cb' token for the ':content_file' one.
Blessings,
~Polyglot~
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Bandwidth limiting for file downloads: What can Perl do?
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 |