lib/cache: save cache lookup if record is stale and not missing
the cache_peek() api was reworked to return an error code instead, from this the caller can tell whether the record is present (but expired) or missing. this save a secondary CNAME lookup in case the original record was just expired
Showing
- lib/cache.c 22 additions, 22 deletionslib/cache.c
- lib/cache.h 4 additions, 3 deletionslib/cache.h
- lib/layer/pktcache.c 5 additions, 6 deletionslib/layer/pktcache.c
- lib/layer/rrcache.c 4 additions, 4 deletionslib/layer/rrcache.c
- lib/resolve.c 1 addition, 1 deletionlib/resolve.c
- tests/test_cache.c 14 additions, 12 deletionstests/test_cache.c
Please register or sign in to comment