http://bugzilla.spamassassin.org/show_bug.cgi?id=4260





------- Additional Comments From [EMAIL PROTECTED]  2005-04-13 22:35 -------
OK, here's an implementation! ;)

This adds a new class, Mail::SpamAssassin::DnsResolver, which acts as our own
$self->{res} object doing the right things with respect to:

    1. not reusing ID numbers
    2. using a single socket
    3. efficiently polling and tracking responses

I didn't go the whole hog to making it event-driven throughout, however. It
*is* event-driven, internally -- but the calling code in URIDNSBL.pm and Dns.pm
doesn't yet take advantage of that, to keep down the code changes in those
packages.

This patch obsoletes all patches to date on bug 3997, and also obsoletes patch
2729 on bug 3881 -- it had to ;)

Speed results, mass-check of 30 recent spams, with this patch:

fresh:  125
repeat: 7
repeat: 10


without the patch:

fresh:  163
repeat: 25
repeat: 17


a pretty major speedup.

Note that this patch will still warn if out-of-order responses arrive--
I didn't see any in this testing (for either side) however.

--j.




------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

Reply via email to