I'm tired waiting 30min and more for apnic and idnic to finish their delta syncs with 1000+ deltas to fetch from a server on the other side of the planet. If a repo is more than 300 deltas behind just grab the snapshot, it is way faster in the end.
The number 300 was selected to be not too low to allow repos to mostly use the delta downloads and save bandwidth. -- :wq Claudio Index: rrdp_notification.c =================================================================== RCS file: /cvs/src/usr.sbin/rpki-client/rrdp_notification.c,v retrieving revision 1.6 diff -u -p -r1.6 rrdp_notification.c --- rrdp_notification.c 12 Aug 2021 15:23:16 -0000 1.6 +++ rrdp_notification.c 10 Sep 2021 13:16:23 -0000 @@ -371,6 +371,10 @@ notification_done(struct notification_xm return NOTIFICATION; } + /* it makes no sense to process too many deltas */ + if (nxml->serial - nxml->repository->serial > 300) + goto snapshot; + /* check that all needed deltas are available */ s = nxml->repository->serial + 1; TAILQ_FOREACH(d, &nxml->delta_q, q) {