- Fixup unit test for cachedb server expired client timeout with

a check if response if from upstream or from cachedb.
This commit is contained in:
W.C.A. Wijngaards 2024-04-12 11:51:00 +02:00
parent 08fb9a9209
commit 4d530920e0
2 changed files with 7 additions and 1 deletions

View file

@ -1,5 +1,7 @@
12 April 2024: Wouter
- Fix cachedb for serve-expired with serve-expired-client-timeout.
- Fixup unit test for cachedb server expired client timeout with
a check if response if from upstream or from cachedb.
10 April 2024: Wouter
- Implement cachedb-check-when-serve-expired: yes option, default

View file

@ -215,6 +215,10 @@ STEP 40 FLUSH_MESSAGE www2.example.com. IN A
; because of the client timeout, it should be able to use the
; response from cachedb for www2.
; make 2 seconds pass to decrement the TTL on the response,
; the upstream TTL would be 10, cachedb 8.
STEP 48 TIME_PASSES ELAPSE 2
STEP 50 QUERY
ENTRY_BEGIN
REPLY RD
@ -229,7 +233,7 @@ REPLY QR RD RA NOERROR
SECTION QUESTION
www2.example.com. IN A
SECTION ANSWER
www2.example.com. 10 IN A 1.2.3.5
www2.example.com. 8 IN A 1.2.3.5
ENTRY_END
; make both cache and cachedb expired