From: Bart Polot Date: Wed, 14 Nov 2012 10:45:14 +0000 (+0000) Subject: - adjust default dht_replication_level X-Git-Tag: initial-import-from-subversion-38251~10873 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=cb515930b242a7e33b012a22b227102325a33e0c;p=oweals%2Fgnunet.git - adjust default dht_replication_level --- diff --git a/src/mesh/gnunet-service-mesh.c b/src/mesh/gnunet-service-mesh.c index 1a7f10e89..a17aaa649 100644 --- a/src/mesh/gnunet-service-mesh.c +++ b/src/mesh/gnunet-service-mesh.c @@ -8471,8 +8471,8 @@ run (void *cls, struct GNUNET_SERVER_Handle *server, GNUNET_log (GNUNET_ERROR_TYPE_WARNING, _ ("%s service is lacking key configuration settings (%s). Using default (%u).\n"), - "mesh", "dht replication level", 10); - dht_replication_level = 10; + "mesh", "dht replication level", 3); + dht_replication_level = 3; } tunnels = GNUNET_CONTAINER_multihashmap_create (32, GNUNET_NO); diff --git a/src/mesh/mesh.conf.in b/src/mesh/mesh.conf.in index 63208564f..8c82a140b 100644 --- a/src/mesh/mesh.conf.in +++ b/src/mesh/mesh.conf.in @@ -14,6 +14,6 @@ APP_ANNOUNCE_TIME = 1 h ID_ANNOUNCE_TIME = 1 h CONNECT_TIMEOUT = 30 s DEFAULT_TTL = 64 -DHT_REPLICATION_LEVEL = 10 +DHT_REPLICATION_LEVEL = 3 MAX_TUNNELS = 1000 MAX_MSGS_QUEUE = 10000 diff --git a/src/mesh/test_mesh.conf b/src/mesh/test_mesh.conf index a7e9680a5..311ede013 100644 --- a/src/mesh/test_mesh.conf +++ b/src/mesh/test_mesh.conf @@ -16,7 +16,7 @@ APP_ANNOUNCE_TIME = 5 s ID_ANNOUNCE_TIME = 5 s CONNECT_TIMEOUT = 30 s DEFAULT_TTL = 16 -DHT_REPLICATION_LEVEL = 10 +DHT_REPLICATION_LEVEL = 3 MAX_TUNNELS = 10 MAX_MSGS_QUEUE = 20 diff --git a/src/mesh/test_mesh_2dtorus.conf b/src/mesh/test_mesh_2dtorus.conf index 5dea5de80..10589e537 100644 --- a/src/mesh/test_mesh_2dtorus.conf +++ b/src/mesh/test_mesh_2dtorus.conf @@ -54,7 +54,8 @@ PORT = 10004 PORT = 10005 ACCEPT_FROM = 127.0.0.1; HOSTNAME = localhost -# PREFIX = valgrind --leak-check=full +PREFIX = valgrind --leak-check=full +DHT_REPLICATION_LEVEL = 10 # PREFIX = xterm -geometry 100x85 -T peer1 -e gdb --args [vpn] diff --git a/src/mesh/test_mesh_small.conf b/src/mesh/test_mesh_small.conf index 2020109a6..a2ac213ad 100644 --- a/src/mesh/test_mesh_small.conf +++ b/src/mesh/test_mesh_small.conf @@ -10,7 +10,7 @@ APP_ANNOUNCE_TIME = 2 s ID_ANNOUNCE_TIME = 2 s CONNECT_TIMEOUT = 30 s DEFAULT_TTL = 64 -DHT_REPLICAITON_LEVEL = 10 +DHT_REPLICAITON_LEVEL = 3 # PREFIX = valgrind --leak-check=full --suppressions=valgrind-mesh.supp # PREFIX = xterm -geometry 100x85 -T peer1 -e gdb --args