You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spamassassin.apache.org by bu...@bugzilla.spamassassin.org on 2004/02/06 16:20:03 UTC

[Bug 3016] New: Received.PM: gethostbyname() timeout too long - should use Net::DNS instead

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

           Summary: Received.PM: gethostbyname() timeout too long - should
                    use Net::DNS instead
           Product: Spamassassin
           Version: unspecified
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P3
         Component: Rules (Eval Tests)
        AssignedTo: spamassassin-dev@incubator.apache.org
        ReportedBy: chris@fatorange.com


I suggest changing Received.pm's sub lookup_all_ips () to use Net::DNS instead 
of the system call gethostbyname(), because one will wait about 15 seconds per 
lookup if the target's nameservers (not yours) time out; there's no way to 
change this system timeout afaik, whereas Net::DNS allows you to specify a 
quick timeout.
Net::DNS is already required by the routine to work in order to check for DNS 
availability.
To see what I mean, try gethostbyname() on jackpotentry.com where both 
nameservers time out, or try the attached message with SA, it will produce a 
delay of 45 seconds for me!



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