mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-30 11:24:24 -04:00
* Reduced DHT default msg rate to 5/sec. (was 50/sec)
- At this level it takes significantly longer for the searches to complete, but there are no DOS warnings on the router. This should hopefully make users happy. * Added DhtMode() Interface call to dynamically change this rate. - Can be switched between (HIGH: 50/sec, MED: 20/sec, LOW: 5/sec & TRICKLE: 3/sec) * Disable additional Queries if PotentialPeer Queue gets too big. git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-dhtmods@4703 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
8b40826940
commit
ed18152596
7 changed files with 123 additions and 41 deletions
|
@ -140,6 +140,9 @@ virtual int stopDht();
|
|||
virtual int stateDht(); /* STOPPED, STARTING, ACTIVE, FAILED */
|
||||
virtual uint32_t statsNetworkSize();
|
||||
virtual uint32_t statsBDVersionSize(); /* same version as us! */
|
||||
|
||||
virtual uint32_t setDhtMode(uint32_t dhtFlags);
|
||||
|
||||
/******************* Internals *************************/
|
||||
|
||||
// Overloaded from bdnode for external node callback.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue