Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 9964 - A retry function for rsync
Summary: A retry function for rsync
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Daniel Robbins (RETIRED)
URL:
Whiteboard:
Keywords:
: 10484 (view as bug list)
Depends on:
Blocks: 4874 5982
  Show dependency tree
 
Reported: 2002-10-30 09:34 UTC by Christopher Sharp
Modified: 2011-10-30 22:37 UTC (History)
4 users (show)

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


Attachments
A patch to allow retries for rsync (emerge-retry.diff,883 bytes, patch)
2002-10-30 09:35 UTC, Christopher Sharp
Details | Diff
Newer version of the patch (emerge-retry_v2.diff,924 bytes, patch)
2002-10-31 11:13 UTC, Christopher Sharp
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Christopher Sharp 2002-10-30 09:34:38 UTC
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
Comment 1 Christopher Sharp 2002-10-30 09:35:26 UTC
Created attachment 5212 [details, diff]
A patch to allow retries for rsync
Comment 2 Tim Haughton 2002-10-30 11:50:08 UTC
This may well be useful as I'm getting 4 or 5 code 12's every day before my
daily rsync works successfully.
Comment 3 Christopher Sharp 2002-10-31 11:13:22 UTC
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 "=" )
Comment 4 SpanKY gentoo-dev 2002-11-09 15:09:39 UTC
*** Bug 10484 has been marked as a duplicate of this bug. ***
Comment 5 Nicholas Jones (RETIRED) gentoo-dev 2002-11-11 07:47:31 UTC
Fixed in cvs for 2.0.44

Thanks.