[Bug 282388] mail/py-pyspf: 268030 patch removes lifetime argument

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 28 Oct 2024 17:41:30 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=282388

            Bug ID: 282388
           Summary: mail/py-pyspf: 268030 patch removes lifetime argument
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: sunpoet@FreeBSD.org
          Reporter: dwhite-freebsd-bugs@gumbysoft.com
             Flags: maintainer-feedback?(sunpoet@FreeBSD.org)
          Assignee: sunpoet@FreeBSD.org

The patch for spf.py in bug #268030 removes the lifetime argument from the call
to dns.resolver.resolve(), causing the DNS timeout to revert to the default 5
seconds and not use the user-provided value. This causes problems with sites
with large SPF lists and slow resolvers (i.e., noaa.gov). General advice from
the SPF RFC is to allow 20 seconds for SPF resolution.

The correct call should be

answers = dns.resolver.resolve(name, qtype, lifetime=timeout)

Checked that this call works properly on the current dnspython version.

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