aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2012-09-26 09:37:52 +0000
committerBart Polot <bart@net.in.tum.de>2012-09-26 09:37:52 +0000
commit033331f8cb21f4236afa1954c07d4de8f92a01b1 (patch)
tree0d850ef1b742388f269f3dc7e532258fffb41ac5 /src
parentd6d37a302aec13f96d9a52b26c4beaac59372429 (diff)
downloadgnunet-033331f8cb21f4236afa1954c07d4de8f92a01b1.tar.gz
gnunet-033331f8cb21f4236afa1954c07d4de8f92a01b1.zip
- timeout sooner on stall
Diffstat (limited to 'src')
-rw-r--r--src/mesh/test_mesh_small.c8
-rw-r--r--src/mesh/test_mesh_small.conf32
2 files changed, 20 insertions, 20 deletions
diff --git a/src/mesh/test_mesh_small.c b/src/mesh/test_mesh_small.c
index ec08b53c4..839382301 100644
--- a/src/mesh/test_mesh_small.c
+++ b/src/mesh/test_mesh_small.c
@@ -47,12 +47,12 @@ struct MeshPeer
47/** 47/**
48 * How long until we give up on connecting the peers? 48 * How long until we give up on connecting the peers?
49 */ 49 */
50#define TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 1500) 50#define TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 120)
51 51
52/** 52/**
53 * Time to wait for stuff that should be rather fast 53 * Time to wait for stuff that should be rather fast
54 */ 54 */
55#define SHORT_TIME GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 300) 55#define SHORT_TIME GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 30)
56 56
57/** 57/**
58 * DIFFERENT TESTS TO RUN 58 * DIFFERENT TESTS TO RUN
@@ -126,7 +126,7 @@ static struct GNUNET_DISK_FileHandle *output_file;
126static struct GNUNET_DISK_FileHandle *data_file; 126static struct GNUNET_DISK_FileHandle *data_file;
127 127
128/** 128/**
129 * How many data points to capture before triggering next round? 129 * Wait time
130 */ 130 */
131static struct GNUNET_TIME_Relative wait_time; 131static struct GNUNET_TIME_Relative wait_time;
132 132
@@ -637,7 +637,7 @@ do_test (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
637 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "add peer 2\n"); 637 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "add peer 2\n");
638 GNUNET_MESH_peer_request_connect_add (t, &d2->id); 638 GNUNET_MESH_peer_request_connect_add (t, &d2->id);
639 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 639 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
640 "schedule timeout in 90s\n"); 640 "schedule timeout in SHORT_TIME\n");
641 if (GNUNET_SCHEDULER_NO_TASK != disconnect_task) 641 if (GNUNET_SCHEDULER_NO_TASK != disconnect_task)
642 { 642 {
643 GNUNET_SCHEDULER_cancel (disconnect_task); 643 GNUNET_SCHEDULER_cancel (disconnect_task);
diff --git a/src/mesh/test_mesh_small.conf b/src/mesh/test_mesh_small.conf
index 7151203db..057a4fa12 100644
--- a/src/mesh/test_mesh_small.conf
+++ b/src/mesh/test_mesh_small.conf
@@ -2,6 +2,21 @@
2SERVICEHOME = /tmp/test_mesh_small/ 2SERVICEHOME = /tmp/test_mesh_small/
3DEFAULTCONFIG = test_mesh_small.conf 3DEFAULTCONFIG = test_mesh_small.conf
4 4
5[mesh]
6PORT = 10005
7DEBUG = YES
8ACCEPT_FROM = 127.0.0.1;
9HOSTNAME = localhost
10REFRESH_PATH_TIME = 5 s
11APP_ANNOUNCE_TIME = 2 s
12ID_ANNOUNCE_TIME = 2 s
13UNACKNOWLEDGED_WAIT = 2 s
14CONNECT_TIMEOUT = 30 s
15DEFAULT_TTL = 64
16DHT_REPLICAITON_LEVEL = 10
17PREFIX = valgrind --leak-check=full --suppressions=valgrind-mesh.supp
18# PREFIX = xterm -geometry 100x85 -T peer1 -e gdb --args
19
5[arm] 20[arm]
6PORT = 10010 21PORT = 10010
7DEFAULTSERVICES = core dht mesh 22DEFAULTSERVICES = core dht mesh
@@ -58,21 +73,6 @@ PORT = 10003
58AUTOSTART = YES 73AUTOSTART = YES
59PORT = 10004 74PORT = 10004
60 75
61[mesh]
62PORT = 10005
63DEBUG = YES
64ACCEPT_FROM = 127.0.0.1;
65HOSTNAME = localhost
66REFRESH_PATH_TIME = 5 s
67APP_ANNOUNCE_TIME = 5 s
68ID_ANNOUNCE_TIME = 5 s
69UNACKNOWLEDGED_WAIT = 2 s
70CONNECT_TIMEOUT = 30 s
71DEFAULT_TTL = 64
72DHT_REPLICAITON_LEVEL = 10
73# PREFIX = valgrind --leak-check=full --suppressions=valgrind-mesh.supp
74# PREFIX = xterm -geometry 100x85 -T peer1 -e gdb --args
75
76[testing] 76[testing]
77WEAKRANDOM = YES 77WEAKRANDOM = YES
78 78
@@ -105,6 +105,6 @@ MAX_OUTSTANDING_CONNECTIONS = 75
105DELETE_FILES = YES 105DELETE_FILES = YES
106 106
107[test_mesh_small] 107[test_mesh_small]
108WAIT_TIME = 300 s 108WAIT_TIME = 30 s
109CONNECTION_LIMIT = 16 109CONNECTION_LIMIT = 16
110#DATA_OUTPUT_FILE=data_output 110#DATA_OUTPUT_FILE=data_output