Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 77796 - net-misc/rsync --daemon doesn't work with --bwlimit
Summary: net-misc/rsync --daemon doesn't work with --bwlimit
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-13 01:37 UTC by Uwe Ohse
Modified: 2005-04-05 17:13 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Uwe Ohse 2005-01-13 01:37:56 UTC
Trivial bug: 

Some time after 2.6.0 the --bwlimit code was enhanced, but the code now         
doesn't work anymore when you set the bandwidth limit for the daemon and        
generates error log entries like:                                               
                                                                                
2005/01/13 08:17:03 [29636] rsync: writefd_unbuffered failed to write 12 bytes: phase "unknown" [receiver]: Success (0)                                
2005/01/13 08:17:03 [29636] rsync error: error in rsync protocol data stream (code 12) at io.c(909)                                                 



Reproducible: Always
Steps to Reproduce:
1. start rsync --daemon --bwlimit 100 [other options]
2. start a rsync client.


Actual Results:  
Connection closed.

Expected Results:  
Usual rsync session.

This patch fixes the problem:

http://www.ohse.de/uwe/patches/rsync-2.6.3-bwlimit-daemon.patch

Upstream (rsync at lists.samba.org) got a copy.

Regards, Uwe
Comment 1 SpanKY gentoo-dev 2005-01-13 18:04:35 UTC
do you have a URL for the upstream mailing list where this was posted ?
Comment 3 SpanKY gentoo-dev 2005-04-05 17:13:26 UTC
2.6.4 is now in portage which appears to have both a client and daemon bwlimit option ... please re-open if 2.6.4 doesnt work for you