From 06e247a83238ace88b3705e4551bc01b44cfe166 Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Mon, 3 Oct 2011 17:30:18 +0000 Subject: [PATCH] Tweaked test configuration and log messages --- src/mesh/gnunet-service-mesh.c | 3 ++- src/mesh/test_mesh_small.conf | 6 +++--- src/mesh/test_mesh_small_unicast.c | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/mesh/gnunet-service-mesh.c b/src/mesh/gnunet-service-mesh.c index 2c31ad68c..cf78528f1 100644 --- a/src/mesh/gnunet-service-mesh.c +++ b/src/mesh/gnunet-service-mesh.c @@ -1249,7 +1249,7 @@ send_core_create_path (void *cls, size_t size, void *buf) GNUNET_free (info); GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, - "MESH: %u bytes long create path sent!\n", + "MESH: CREATE PATH (%u bytes long) sent!\n", size_needed); return size_needed; } @@ -1406,6 +1406,7 @@ send_core_path_ack (void *cls, size_t size, void *buf) GNUNET_free (info); /* TODO add signature */ + GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "MESH: PATH ACK sent!\n"); return sizeof (struct GNUNET_MESH_PathACK); } diff --git a/src/mesh/test_mesh_small.conf b/src/mesh/test_mesh_small.conf index 0c7485c20..df4595289 100644 --- a/src/mesh/test_mesh_small.conf +++ b/src/mesh/test_mesh_small.conf @@ -13,7 +13,7 @@ PORT = 10000 [dht] DEBUG = NO -AUTOSTART = YES +AUTOSTART = NO ACCEPT_FROM6 = ::1; ACCEPT_FROM = 127.0.0.1; HOSTNAME = localhost @@ -76,6 +76,6 @@ MAX_OUTSTANDING_CONNECTIONS = 75 DELETE_FILES = YES [test_mesh_small] -WAIT_TIME = 70 -CONNECTION_LIMIT = 10 +WAIT_TIME = 90 +CONNECTION_LIMIT = 16 DATA_OUTPUT_FILE=data_output diff --git a/src/mesh/test_mesh_small_unicast.c b/src/mesh/test_mesh_small_unicast.c index 4cd07c095..f7247b5f2 100644 --- a/src/mesh/test_mesh_small_unicast.c +++ b/src/mesh/test_mesh_small_unicast.c @@ -278,7 +278,7 @@ do_test (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) GNUNET_MESH_peer_request_connect_add(t, &d2->id); GNUNET_SCHEDULER_cancel (disconnect_task); disconnect_task = GNUNET_SCHEDULER_add_delayed( - GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_SECONDS, 10), + GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_SECONDS, 30), &disconnect_mesh_peers, NULL); } -- 2.25.1