diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2011-09-30 11:20:44 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2011-09-30 11:20:44 +0000 |
commit | 4c3512dc834a6be9da4a8a656f596da536ca67f4 (patch) | |
tree | a1e3453b754954208dca9feefa080425d9df693d /src/transport/test_transport_api_reliability.c | |
parent | f85e367ddecd6f43c880cb2e266af8139472cc2b (diff) | |
download | gnunet-4c3512dc834a6be9da4a8a656f596da536ca67f4.tar.gz gnunet-4c3512dc834a6be9da4a8a656f596da536ca67f4.zip |
some diagnoses
Diffstat (limited to 'src/transport/test_transport_api_reliability.c')
-rw-r--r-- | src/transport/test_transport_api_reliability.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/transport/test_transport_api_reliability.c b/src/transport/test_transport_api_reliability.c index 1b6d89afe..7f8c9ad0f 100644 --- a/src/transport/test_transport_api_reliability.c +++ b/src/transport/test_transport_api_reliability.c | |||
@@ -100,6 +100,7 @@ static int msg_recv_expected; | |||
100 | static int msg_recv; | 100 | static int msg_recv; |
101 | 101 | ||
102 | static int test_failed; | 102 | static int test_failed; |
103 | static int test_connected; | ||
103 | 104 | ||
104 | static unsigned long long total_bytes; | 105 | static unsigned long long total_bytes; |
105 | 106 | ||
@@ -150,6 +151,11 @@ end_badly () | |||
150 | die_task = GNUNET_SCHEDULER_NO_TASK; | 151 | die_task = GNUNET_SCHEDULER_NO_TASK; |
151 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Fail! Stopping peers\n"); | 152 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Fail! Stopping peers\n"); |
152 | 153 | ||
154 | if (test_connected == GNUNET_NO) | ||
155 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Peers got connected\n"); | ||
156 | else | ||
157 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Peers got NOT connected\n"); | ||
158 | |||
153 | if (th != NULL) | 159 | if (th != NULL) |
154 | GNUNET_TRANSPORT_notify_transmit_ready_cancel (th); | 160 | GNUNET_TRANSPORT_notify_transmit_ready_cancel (th); |
155 | th = NULL; | 161 | th = NULL; |
@@ -261,7 +267,7 @@ notify_ready (void *cls, size_t size, void *buf) | |||
261 | if (buf == NULL) | 267 | if (buf == NULL) |
262 | { | 268 | { |
263 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, | 269 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, |
264 | "Timeout occurred while waiting for transmit_ready\n"); | 270 | "Timeout occurred while waiting for transmit_ready for message %u of %u\n", msg_scheduled, TOTAL_MSGS); |
265 | if (GNUNET_SCHEDULER_NO_TASK != die_task) | 271 | if (GNUNET_SCHEDULER_NO_TASK != die_task) |
266 | GNUNET_SCHEDULER_cancel (die_task); | 272 | GNUNET_SCHEDULER_cancel (die_task); |
267 | die_task = GNUNET_SCHEDULER_add_now (&end_badly, NULL); | 273 | die_task = GNUNET_SCHEDULER_add_now (&end_badly, NULL); |
@@ -401,6 +407,7 @@ run (void *cls, char *const *args, const char *cfgfile, | |||
401 | die_task = GNUNET_SCHEDULER_add_now (&end_badly, NULL); | 407 | die_task = GNUNET_SCHEDULER_add_now (&end_badly, NULL); |
402 | return; | 408 | return; |
403 | } | 409 | } |
410 | test_connected = GNUNET_NO; | ||
404 | 411 | ||
405 | GNUNET_TRANSPORT_TESTING_connect_peers (p1, p2, &testing_connect_cb, NULL); | 412 | GNUNET_TRANSPORT_TESTING_connect_peers (p1, p2, &testing_connect_cb, NULL); |
406 | } | 413 | } |