Skip to content

Commit 0cb0b3e

Browse files
committed
Set cache-max-negative-ttl in DNS queries
(in addition to cache-max-ttl)
1 parent c22b15c commit 0cb0b3e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

checks/tasks/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,11 @@ def ub_ctx(self):
3838
self._ub_ctx.zone_add("test.", "transparent")
3939

4040
self._ub_ctx.set_option("cache-max-ttl:", str(settings.CACHE_TTL * 0.9))
41-
# Some (unknown) tests probably depend on consistent ordering in unbound responses
41+
self._ub_ctx.set_option("cache-max-negative-ttl:", str(settings.CACHE_TTL * 0.9))
42+
# Some may depend on consistent ordering in unbound responses
4243
# https://github.com/internetstandards/Internet.nl/pull/613#discussion_r892196819
44+
# https://github.com/internetstandards/Internet.nl/pull/1292#discussion_r1505778673
4345
self._ub_ctx.set_option("rrset-roundrobin:", "no")
44-
self._ub_ctx.set_option("cache-max-ttl:", str(settings.CACHE_TTL * 0.9))
4546
# XXX: Remove for now; inconsistency with applying settings on celery.
4647
# YYY: Removal caused infinite waiting on pipe to unbound. Added again.
4748
self._ub_ctx.set_async(True)

0 commit comments

Comments
 (0)