wget-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Wget-dev] wget2 | Add --limit-rate option (wget1.x) (#408)


From: Rohan Fletcher
Subject: Re: [Wget-dev] wget2 | Add --limit-rate option (wget1.x) (#408)
Date: Fri, 19 Apr 2019 06:30:40 +0000



I have found bandwidth limiting code in rsync that might be useful as a 
reference

truncate write size to 
https://github.com/AndyA/rsync/blob/9d96ce6a626bda1cd5df866e66159e75782df6f5/io.c#L808
```
if (bwlimit_writemax && len > bwlimit_writemax)
len = bwlimit_writemax;
```

sleep depending on how much data has been sent
https://github.com/AndyA/rsync/blob/9d96ce6a626bda1cd5df866e66159e75782df6f5/io.c#L1920

-- 
Reply to this email directly or view it on GitLab: 
https://gitlab.com/gnuwget/wget2/issues/408#note_162392705
You're receiving this email because of your account on gitlab.com.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]