Skip to content

Commit

Permalink
Merge pull request #2059 from Vort/manage_interval
Browse files Browse the repository at this point in the history
manage netDb requests more frequently
  • Loading branch information
orignal authored Apr 24, 2024
2 parents 02895d4 + 6592fab commit d3b699d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions libi2pd/NetDb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ namespace data
{
try
{
auto msg = m_Queue.GetNextWithTimeout (15000); // 15 sec
auto msg = m_Queue.GetNextWithTimeout (1000); // 1 sec
if (msg)
{
int numMsgs = 0;
Expand Down Expand Up @@ -467,7 +467,7 @@ namespace data
return;
}
m_FloodfillBootstrap = ri;
ReseedFromFloodfill(*ri);
//ReseedFromFloodfill(*ri);
// don't try reseed servers if trying to bootstrap from floodfill
return;
}
Expand Down
4 changes: 2 additions & 2 deletions libi2pd/NetDbRequests.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ namespace i2p
namespace data
{
const size_t MAX_NUM_REQUEST_ATTEMPTS = 7;
const uint64_t MANAGE_REQUESTS_INTERVAL = 15; // in seconds
const uint64_t MANAGE_REQUESTS_INTERVAL = 1; // in seconds
const uint64_t MIN_REQUEST_TIME = 5; // in seconds
const uint64_t MAX_REQUEST_TIME = MAX_NUM_REQUEST_ATTEMPTS*MANAGE_REQUESTS_INTERVAL;
const uint64_t MAX_REQUEST_TIME = MAX_NUM_REQUEST_ATTEMPTS * (MIN_REQUEST_TIME + MANAGE_REQUESTS_INTERVAL);

class RequestedDestination
{
Expand Down

0 comments on commit d3b699d

Please sign in to comment.