On Wed, Jul 11, 2012 at 3:00 PM, Mike McLean <mikem....@gmail.com> wrote:
> Sure, I can adjust the patch to use a per-request total rather that
> per-request-per-mirror. However, that would effectively truncate long
> mirror lists. I'm thinking the number of retries per request should
> be:
>
>   max(retries, min(max_mirrors, len(mirrors)))
>
> where max_mirrors is a new configuration option.

Ok, updated patches attached. Keeping the tries count in
urlgrabber/mirror.py and exposing that to the callback.
I kept the max_mirrors option as a separate patch since it's not
strictly required and I wasn't sure how folks felt about adding such
an option.

Attachment: 0001-record-tries-count-for-grab-requests-and-report-to-c.patch
Description: Binary data

Attachment: 0001-honor-retries-option-at-mirror-level.patch
Description: Binary data

Attachment: 0002-add-max_mirrors-option.patch
Description: Binary data

_______________________________________________
Yum-devel mailing list
Yum-devel@lists.baseurl.org
http://lists.baseurl.org/mailman/listinfo/yum-devel

Reply via email to