I think it might be a good idea to have "emerge rsync" retry to connect if it returns with error code 12. This means either connection reseted by peer or too many users(at least this are the messages I see). Attached you will find a patch which will allow the user to set RSYNC_RETRIES to the number of the retries he wishes "emerge rsync" to perform if it exits with error code 12 default is set to 3 which in my tests normally suffice to connect sucessfully to a server. The patch isn't very nice written but might give you an idea of what I mean. I hope this or another version of this patch will make it into portage soon, as it is a very annoying problem. - Christopher Sharp
Created attachment 5212 [details, diff] A patch to allow retries for rsync
This may well be useful as I'm getting 4 or 5 code 12's every day before my daily rsync works successfully.
Created attachment 5239 [details, diff] Newer version of the patch This is a new version of the patch, which I have cleaned up a little, moved some things around, added some more comments and changed the variable-name of the exit-code. I also changed the style to match the style of portage(ie. no space before and after the "=" )
*** Bug 10484 has been marked as a duplicate of this bug. ***
Fixed in cvs for 2.0.44 Thanks.