mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-17 13:30:36 -04:00
Reversed Changes for Testing Purposes.
* Disabled lots of debugging. * Disabled LOCAL test mode in udpstunner, rsinit * Enabled BadPeer checking in bitdht. * Restored normal timeout periods for connection attempts. * Restored normal connection levels for dht status. git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-dhtmods@4779 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
e0dcca8d13
commit
9e5e07d3f0
8 changed files with 22 additions and 22 deletions
|
@ -35,13 +35,15 @@
|
|||
#include "util/bdrandom.h"
|
||||
|
||||
/*
|
||||
* #define DEBUG_PROXY_CONNECTION 1
|
||||
* #define DEBUG_NODE_CONNECTION 1
|
||||
* #define DEBUG_NODE_CONNECTION_EXTRA 1
|
||||
* #define DEBUG_CONNECTION_DELAY 1
|
||||
*/
|
||||
|
||||
#define DEBUG_NODE_CONNECTION 1
|
||||
#define DEBUG_CONNECTION_DELAY 1
|
||||
//#define DEBUG_PROXY_CONNECTION 1
|
||||
//#define DEBUG_NODE_CONNECTION 1
|
||||
//#define DEBUG_CONNECTION_DELAY 1
|
||||
|
||||
|
||||
#define BITDHT_CR_PAUSE_SHORT_PERIOD 1
|
||||
|
|
|
@ -312,11 +312,11 @@ void bdNodeManager::iteration()
|
|||
*/
|
||||
|
||||
#define TRANSITION_OP_SPACE_SIZE 50 /* 1 query / sec, should take 12-15 secs */
|
||||
//#define MAX_FINDSELF_TIME 30
|
||||
//#define MIN_OP_SPACE_SIZE 10
|
||||
#define MAX_FINDSELF_TIME 30
|
||||
#define MIN_OP_SPACE_SIZE 10
|
||||
// testing parameters.
|
||||
#define MAX_FINDSELF_TIME 10
|
||||
#define MIN_OP_SPACE_SIZE 2 // for testing. self + oneother.
|
||||
//#define MAX_FINDSELF_TIME 10
|
||||
//#define MIN_OP_SPACE_SIZE 2 // for testing. self + oneother.
|
||||
|
||||
{
|
||||
uint32_t nodeSpaceSize = mNodeSpace.calcSpaceSize();
|
||||
|
@ -403,8 +403,7 @@ void bdNodeManager::iteration()
|
|||
/* run a random search for ourselves, from own App DHT peer */
|
||||
QueryRandomLocalNet();
|
||||
|
||||
//#define SEARCH_MAX_SIZE 10
|
||||
#define SEARCH_MAX_SIZE 0
|
||||
#define SEARCH_MAX_SIZE 10
|
||||
if (mBdNetworkSize < SEARCH_MAX_SIZE)
|
||||
{
|
||||
#ifdef DEBUG_MGR
|
||||
|
|
|
@ -60,9 +60,12 @@
|
|||
|
||||
* #define DEBUG_NODE_MSGIN 1
|
||||
* #define DEBUG_NODE_MSGOUT 1
|
||||
*
|
||||
* #define DISABLE_BAD_PEER_FILTER 1
|
||||
*
|
||||
***/
|
||||
|
||||
//#define DEBUG_NODE_MSGS 1
|
||||
//#define DISABLE_BAD_PEER_FILTER 1
|
||||
|
||||
|
||||
bdNode::bdNode(bdNodeId *ownId, std::string dhtVersion, std::string bootfile, bdDhtFunctions *fns)
|
||||
|
@ -461,9 +464,6 @@ void bdNode::send_connect_msg(bdId *id, int msgtype, bdId *srcAddr, bdId *destAd
|
|||
}
|
||||
|
||||
|
||||
|
||||
#define DISABLE_BAD_PEER_FILTER 1
|
||||
|
||||
void bdNode::checkPotentialPeer(bdId *id, bdId *src)
|
||||
{
|
||||
/* Check BadPeer Filters for Potential Peers too */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue