[rbldnsd] Disabling ipv6-specific tests
Michael Orlitzky
michael at orlitzky.com
Thu Aug 1 19:31:11 MSK 2013
On 07/31/2013 07:20 PM, Jeff Dairiki wrote:
>
> Aha! That's the real error. The "exception in ... __del__" error was
> a red herring.
>
> It turns out the pydns library (starting with 2.3.6 — I've been using
> 2.3.4) has changed how it signals "connection refused" errors. The
> the relocation of the sleep() from the top to the bottom of the retry
> loop in my "Fix typo" commit (29b5750) exercised the problem.
>
> I've just pushed a fix:
> https://github.com/dairiki/rbldnsd/commit/0c1a5e4
>
Awesome, it's working. With that out of the way, there's another small
problem =)
>>> import socket
>>> socket.has_ipv6
False
>>> s = socket.socket(socket.AF_INET6, socket.SOCK_DGRAM)
>>> s.close()
I think that will catch the missing kernel support (I haven't made it
that far yet), but it doesn't look like it works for python. This should
work though:
- no_ipv6 = Rbldnsd().no_ipv6
+ no_ipv6 = Rbldnsd().no_ipv6 or not socket.has_ipv6
More information about the rbldnsd
mailing list