mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-05-20 06:11:47 +02:00
drop router's buffer after a while without updates
This commit is contained in:
parent
29a5effabb
commit
cba7e5350d
1 changed files with 4 additions and 0 deletions
|
@ -683,6 +683,10 @@ namespace data
|
|||
updatedCount++;
|
||||
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 ())
|
||||
r->SetUnreachable (true);
|
||||
// make router reachable back if too few routers or floodfills
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue