[rbldnsd] Disabling ipv6-specific tests

Jeff Dairiki dairiki at dairiki.org
Thu Aug 1 03:20:51 MSK 2013


On Wed, Jul 31, 2013 at 06:25:15PM -0400, Michael Orlitzky wrote:
> 
> ======================================================================
> ERROR: test_exclusion (test_ip4trie.TestIp4TrieDataset)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/home/mjo/src/rbldnsd/test_ip4trie.py", line 25, in test_exclusion
>     "!1.2.3.4"]) as dnsd:
>   File "/home/mjo/src/rbldnsd/rbldnsd.py", line 67, in __enter__
>     self._start_daemon()
>   File "/home/mjo/src/rbldnsd/rbldnsd.py", line 122, in _start_daemon
>     self.query('dummy.nonexisting.zone')
>   File "/home/mjo/src/rbldnsd/rbldnsd.py", line 85, in query
>     resp = req.req(server=self.daemon_addr, port=self.daemon_port)
>   File "/usr/lib64/python2.7/site-packages/DNS/Base.py", line 235, in req
>     raise SocketError, reason
> SocketError: [Errno 111] Connection refused

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

Jeff


More information about the rbldnsd mailing list