https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6654
--- Comment #11 from Mark Martinec <[email protected]> 2011-11-08 03:03:19 UTC --- I'm committing my current state of sa-update for review/comments/testing. It turned out to be a much more work than anticipated. It may still need one or two details to be ironed out, but should already be usable and should give an idea of what the change is all about. >From the mailing list: 2011-11-05 Mark wrote: > I have the first part of the sa-update change mostly ready, will > commit for review possibly tonight or tomorrow. Giving up on the LWP > module (but keeping it as a fallback), but using external programs > curl or wget of fetch preferentially, as they all know how to deal > with IPv4/IPv6 and A/AAAA/CNAME properly, unlike the libwww-perl which > seems to be ignoring IPv6 support requests persistently. Kevin wrote: > Sounds like a sane solution. Mark wrote: > What remains is to deal with avoiding repeated downloads if > later stages of rules installation fails. Not sure how to go > about it (and where to keep downloaded files). As a solution to both Bug 6655 and Bug 6654 is intertwined, I did not try to keep the changes apart, so here is a single commit: trunk: Bug 6655: sa-update might DOS mirrors if TMPDIR unwritable Bug 6654: Make sa-update and its infrastructure usable over IPv6 - the LWP perl module does not support IPv6 and is hard to trick properly to use IO::Socket::INET6 in place of IO::Socket::INET (e.g., doesn't handle multihomed (like dual-stack) hosts). Instead, add code to use one of the external programs (curl, wget, fetch) to download rules files and mirrors file, and make LWP module optional. If an external program is not available, fall back to LWP; - preserve .tar.gz, .sha1 and .asc files if rules installation fails, so that a subsequent attempt does not download these files again, as long as their size and creation time match the server (this task is handled by curl, wget, or fetch); - improve debug logging; Sending sa-update.raw Committed revision 1199081. -- Configure bugmail: https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.
