mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
cache complete request for a while and not send the same request again
This commit is contained in:
parent
8a20d3219b
commit
396aa6944d
3 changed files with 52 additions and 30 deletions
|
@ -25,6 +25,7 @@ namespace data
|
|||
const uint64_t MIN_REQUEST_TIME = 5; // in seconds
|
||||
const uint64_t MAX_REQUEST_TIME = MAX_NUM_REQUEST_ATTEMPTS * (MIN_REQUEST_TIME + MANAGE_REQUESTS_INTERVAL);
|
||||
const uint64_t MAX_EXPLORATORY_REQUEST_TIME = 30; // in seconds
|
||||
const uint64_t REQUEST_CACHE_TIME = MAX_REQUEST_TIME + 40; // in seconds
|
||||
|
||||
class RequestedDestination
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue