Bug 7530 - Update sa-update to better handle missing ruleset files on mirrors and add retries with random delays
Summary: Update sa-update to better handle missing ruleset files on mirrors and add re...
Status: RESOLVED FIXED
Alias: None
Product: Spamassassin
Classification: Unclassified
Component: sa-update (show other bugs)
Version: SVN Trunk (Latest Devel Version)
Hardware: PC Linux
: P2 normal
Target Milestone: 3.4.3
Assignee: SpamAssassin Developer Mailing List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-11 18:13 UTC by Dave Jones
Modified: 2019-06-15 15:33 UTC (History)
2 users (show)



Attachment Type Modified Status Actions Submitter/CLA Status

Note You need to log in before you can comment on or make changes to this bug.
Description Dave Jones 2018-01-11 18:13:20 UTC
Add checking logic to detect when curl/wget are not able to download the ruleset files and give better debug output.  Currently GPG is attempted even when the files were not downloaded giving a misleading error.

Also add a loop with retries when a 404 is returned to better handle mirrors out of sync.  It could even try a different mirror immediately then backoff with random sleeps if the first few return 404.
Comment 1 Henrik Krohns 2019-06-15 15:33:22 UTC
Retries are already implemented in sa-update.