Bug 9660 - rsync --daemon --bwlimit does not work on server side
Summary: rsync --daemon --bwlimit does not work on server side
Status: ASSIGNED
Alias: None
Product: rsync
Classification: Unclassified
Component: core (show other bugs)
Version: 3.0.9
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: Wayne Davison
QA Contact: Rsync QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-13 20:35 UTC by mopp
Modified: 2013-05-19 23:29 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mopp 2013-02-13 20:35:17 UTC
Accroding to the help rsync --daemon -h the daemon should work with --bwlimit.
Unfortunately --bwlimit does not work.
It only works as a client option, but not on the server side:
# rsync --daemon --bwlimit=100

I'm transferring a 10MByte file over network.
Comment 1 mopp 2013-03-29 10:28:30 UTC
It looks like the function is not implemented for the --deamon mode. Can somebody confirm this?
Comment 2 Wayne Davison 2013-05-19 23:29:26 UTC
The --bwlimit option is understood when starting the daemon, but the value isn't shared with the client, so any limiting that the client side would normally be in charge of won't happen.  If you're wanting to force --bwlimit to a particular value, your only option is probably to write a pre-xfer exec script that scans the args and dies with an error if bwlimit isn't right.

What we need to do for the future is make the daemon side send any in-effect bwlimit to the client in the protocol at startup.