config: reduce remote node timeout to 10 update intervals
Even when there are network issues, we shouldn't keep stale data around for so long Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
2
remote.c
2
remote.c
@@ -479,7 +479,7 @@ static void
|
||||
usteer_check_timeout(void)
|
||||
{
|
||||
struct usteer_remote_node *node, *tmp;
|
||||
int timeout = config.remote_node_timeout / config.remote_update_interval;
|
||||
int timeout = config.remote_node_timeout;
|
||||
|
||||
list_for_each_entry_safe(node, tmp, &remote_nodes, list) {
|
||||
if (node->check++ > timeout)
|
||||
|
Reference in New Issue
Block a user