mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-27 08:29:26 -05:00
* added #define WIN32 protection for <malloc> in bdbloom
* disabled ATTACHED mode by default. * set reasonable default Startup parameters (had test ones before) git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4397 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
cca2962116
commit
24351cb460
@ -272,11 +272,12 @@ void bdNodeManager::iteration()
|
|||||||
* if, after 60 secs, we haven't reached MIN_OP_SPACE_SIZE, restart....
|
* if, after 60 secs, we haven't reached MIN_OP_SPACE_SIZE, restart....
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define TRANSITION_OP_SPACE_SIZE 100 /* 1 query / sec, should take 12-15 secs */
|
#define TRANSITION_OP_SPACE_SIZE 50 /* 1 query / sec, should take 12-15 secs */
|
||||||
//#define MAX_FINDSELF_TIME 60
|
#define MAX_FINDSELF_TIME 30
|
||||||
//#define MIN_OP_SPACE_SIZE 20
|
#define MIN_OP_SPACE_SIZE 10
|
||||||
#define MAX_FINDSELF_TIME 10
|
// testing parameters.
|
||||||
#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();
|
uint32_t nodeSpaceSize = mNodeSpace.calcSpaceSize();
|
||||||
|
@ -79,7 +79,8 @@ void bdNode::init()
|
|||||||
std::list<bdFilteredPeer> emptyList;
|
std::list<bdFilteredPeer> emptyList;
|
||||||
mFilterPeers = new bdFilter(&mOwnId, emptyList, BITDHT_FILTER_REASON_OWNID, mFns);
|
mFilterPeers = new bdFilter(&mOwnId, emptyList, BITDHT_FILTER_REASON_OWNID, mFns);
|
||||||
|
|
||||||
setNodeOptions(BITDHT_OPTIONS_MAINTAIN_UNSTABLE_PORT);
|
//setNodeOptions(BITDHT_OPTIONS_MAINTAIN_UNSTABLE_PORT);
|
||||||
|
setNodeOptions(0);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -27,8 +27,10 @@
|
|||||||
|
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
#include <iomanip>
|
#include <iomanip>
|
||||||
#include <malloc.h>
|
|
||||||
|
|
||||||
|
#if defined(_WIN32) || defined(__MINGW32__)
|
||||||
|
#include <malloc.h>
|
||||||
|
#endif
|
||||||
/* Bloom Filter implementation */
|
/* Bloom Filter implementation */
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user