You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by he...@apache.org on 2022/04/29 03:54:35 UTC

svn commit: r1900371 - /spamassassin/trunk/sa-update.raw

Author: hege
Date: Fri Apr 29 03:54:35 2022
New Revision: 1900371

URL: http://svn.apache.org/viewvc?rev=1900371&view=rev
Log:
Make sure mirrors fetches are randomized

Modified:
    spamassassin/trunk/sa-update.raw

Modified: spamassassin/trunk/sa-update.raw
URL: http://svn.apache.org/viewvc/spamassassin/trunk/sa-update.raw?rev=1900371&r1=1900370&r2=1900371&view=diff
==============================================================================
--- spamassassin/trunk/sa-update.raw (original)
+++ spamassassin/trunk/sa-update.raw Fri Apr 29 03:54:35 2022
@@ -676,6 +676,8 @@ foreach my $channel (@channels) {
         channel_failed("channel '$channel': MIRRORED.BY file URL was not in DNS");
         next;
       }
+      # make sure requests spread randomly
+      Mail::SpamAssassin::Util::fisher_yates_shuffle(\@mirrors);
       foreach my $mirror (@mirrors) {
         my ($result_fname, $http_ok) =
           http_get($mirror, $UPDDir, $mirby_path, $mirby_force_reload);