~hloeung/ubuntu-repository-cache/retry-for-each-host

Viewing all changes in revision 265.

  • Committer: Haw Loeung
  • Date: 2020-02-04 21:39:43 UTC
  • Revision ID: haw.loeung@canonical.com-20200204213943-vfjjtg45n8ovh3r5
Make metadata sync more resilient and retry

For Ubuntu Archive, it's fine because the sync host usually resolves
to more than one host/IP and therefore it goes through each but for
something like Ubuntu Ports, it's only a single host/IP. Instead,
let's retry up to 3 times before moving onto the next host.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: