http://bugzilla.spamassassin.org/show_bug.cgi?id=3881
Summary: dnsbl lookups slow due to "sleep 1" in code
Product: Spamassassin
Version: 3.0.0
Platform: Other
OS/Version: FreeBSD
Status: NEW
Severity: normal
Priority: P5
Component: Libraries
AssignedTo: [email protected]
ReportedBy: [EMAIL PROTECTED]
While trying to track down why spamassassin suspiciously often
took around 1.0x seconds to run, I came across this code snippet:
(Mail/SpamAssassin/Dns.pm, line 319):
sleep 1;
The code is executed while collecting the DNSBL lookups. If not all
DNSBL query results are in, this waits for the answers to come in.
Since we run local copies of most blacklists, I expected the answers in
milliseconds - not seconds.
It turned out that the fix wasn't too difficult, I've made patches
to use IO::Select to wait for the DNS query sockets to become readable.
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.