mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-24 14:24:14 +00:00
drop router's buffer after a while without updates
This commit is contained in:
parent
29a5effabb
commit
cba7e5350d
@ -683,6 +683,10 @@ namespace data
|
|||||||
updatedCount++;
|
updatedCount++;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
else if (r->GetBuffer () && ts > r->GetTimestamp () + NETDB_MIN_EXPIRATION_TIMEOUT*1000LL)
|
||||||
|
// since update was long time ago we assume that router is not connected anymore
|
||||||
|
r->ScheduleBufferToDelete ();
|
||||||
|
|
||||||
if (r->GetProfile ()->IsUnreachable ())
|
if (r->GetProfile ()->IsUnreachable ())
|
||||||
r->SetUnreachable (true);
|
r->SetUnreachable (true);
|
||||||
// make router reachable back if too few routers or floodfills
|
// make router reachable back if too few routers or floodfills
|
||||||
|
Loading…
x
Reference in New Issue
Block a user