cache: improve service discovery reliability master
authorFelix Fietkau <nbd@nbd.name>
Mon, 10 Feb 2025 20:25:54 +0000 (21:25 +0100)
committerFelix Fietkau <nbd@nbd.name>
Mon, 10 Feb 2025 20:28:32 +0000 (21:28 +0100)
commitc5ca22a71b2ecb83a2a28b46391dac443be315c2
treeb7e10bdcd0220e7f944d4b33b7b363906c0728da
parentc0a2aa12c3979d9352228adacd4e186b30326713
cache: improve service discovery reliability

Send queries for non-host PTR services out to all interfaces instead of
just the one that they were first discovered on.
When updating, go through all non-host service entries and send a query.
When host records expire while non-host service entries remain, queries
were not automatically re-sent, causing some services with lower TTL to
be missed.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
cache.c