mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
- 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:
parent
08fb9a9209
commit
4d530920e0
2 changed files with 7 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
6
testdata/cachedb_expired_client_timeout.crpl
vendored
6
testdata/cachedb_expired_client_timeout.crpl
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue