diff options
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/core.h | 2 | ||||
-rw-r--r-- | src/core/gnunet-service-core.c | 7 | ||||
-rw-r--r-- | src/core/test_core_api.c | 2 | ||||
-rw-r--r-- | src/core/test_core_api_peer1.conf | 8 | ||||
-rw-r--r-- | src/core/test_core_api_peer2.conf | 8 |
5 files changed, 15 insertions, 12 deletions
diff --git a/src/core/core.h b/src/core/core.h index 840c7e143..9f520bf40 100644 --- a/src/core/core.h +++ b/src/core/core.h | |||
@@ -26,7 +26,7 @@ | |||
26 | #include "gnunet_crypto_lib.h" | 26 | #include "gnunet_crypto_lib.h" |
27 | #include "gnunet_time_lib.h" | 27 | #include "gnunet_time_lib.h" |
28 | 28 | ||
29 | #define DEBUG_CORE GNUNET_NO | 29 | #define DEBUG_CORE GNUNET_YES |
30 | 30 | ||
31 | /** | 31 | /** |
32 | * Definition of bits in the InitMessage's options field that specify | 32 | * Definition of bits in the InitMessage's options field that specify |
diff --git a/src/core/gnunet-service-core.c b/src/core/gnunet-service-core.c index 2fbb4ca05..44df8a867 100644 --- a/src/core/gnunet-service-core.c +++ b/src/core/gnunet-service-core.c | |||
@@ -1606,6 +1606,8 @@ send_connect_continuation (void *cls, size_t size, void *buf) | |||
1606 | "Asked to send message to disconnected peer `%4s' and connection failed. Discarding message.\n", | 1606 | "Asked to send message to disconnected peer `%4s' and connection failed. Discarding message.\n", |
1607 | GNUNET_i2s (&sm->peer)); | 1607 | GNUNET_i2s (&sm->peer)); |
1608 | GNUNET_free (sm); | 1608 | GNUNET_free (sm); |
1609 | /* FIXME: do we need to do something here to let the | ||
1610 | client know about the failure!? */ | ||
1609 | return 0; | 1611 | return 0; |
1610 | } | 1612 | } |
1611 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 1613 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
@@ -1659,8 +1661,9 @@ handle_client_send (void *cls, | |||
1659 | if (n == NULL) | 1661 | if (n == NULL) |
1660 | { | 1662 | { |
1661 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 1663 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
1662 | "Not yet connected to `%4s', will try to establish connection\n", | 1664 | "Not yet connected to `%4s', will try to establish connection within %llu ms\n", |
1663 | GNUNET_i2s (&sm->peer)); | 1665 | GNUNET_i2s (&sm->peer), |
1666 | sm->deadline.value); | ||
1664 | msize += sizeof (struct SendMessage); | 1667 | msize += sizeof (struct SendMessage); |
1665 | /* ask transport to connect to the peer */ | 1668 | /* ask transport to connect to the peer */ |
1666 | /* FIXME: this code does not handle the | 1669 | /* FIXME: this code does not handle the |
diff --git a/src/core/test_core_api.c b/src/core/test_core_api.c index e1b3dcd0d..1151f3ebb 100644 --- a/src/core/test_core_api.c +++ b/src/core/test_core_api.c | |||
@@ -34,7 +34,7 @@ | |||
34 | #include "gnunet_scheduler_lib.h" | 34 | #include "gnunet_scheduler_lib.h" |
35 | #include "gnunet_transport_service.h" | 35 | #include "gnunet_transport_service.h" |
36 | 36 | ||
37 | #define VERBOSE GNUNET_NO | 37 | #define VERBOSE GNUNET_YES |
38 | 38 | ||
39 | #define START_ARM GNUNET_YES | 39 | #define START_ARM GNUNET_YES |
40 | 40 | ||
diff --git a/src/core/test_core_api_peer1.conf b/src/core/test_core_api_peer1.conf index fb060e3e6..3c7020688 100644 --- a/src/core/test_core_api_peer1.conf +++ b/src/core/test_core_api_peer1.conf | |||
@@ -9,9 +9,9 @@ PORT = 12464 | |||
9 | [transport] | 9 | [transport] |
10 | PORT = 12465 | 10 | PORT = 12465 |
11 | PLUGINS = tcp | 11 | PLUGINS = tcp |
12 | #PREFIX = xterm -T transport1 -e | 12 | PREFIX = xterm -T transport1 -e |
13 | #PREFIX = xterm -T transport1 -e valgrind --tool=memcheck | 13 | #PREFIX = xterm -T transport1 -e valgrind --tool=memcheck |
14 | #DEBUG = YES | 14 | DEBUG = YES |
15 | 15 | ||
16 | [arm] | 16 | [arm] |
17 | PORT = 12466 | 17 | PORT = 12466 |
@@ -33,8 +33,8 @@ PORT = 12469 | |||
33 | PORT = 12470 | 33 | PORT = 12470 |
34 | #PREFIX = xterm -T core1 -e valgrind --tool=memcheck | 34 | #PREFIX = xterm -T core1 -e valgrind --tool=memcheck |
35 | #PREFIX = xterm -T core1 -e gdb -x cmd --args | 35 | #PREFIX = xterm -T core1 -e gdb -x cmd --args |
36 | #PREFIX = xterm -T core1 -e | 36 | PREFIX = xterm -T core1 -e |
37 | #DEBUG = YES | 37 | DEBUG = YES |
38 | 38 | ||
39 | [testing] | 39 | [testing] |
40 | WEAKRANDOM = YES | 40 | WEAKRANDOM = YES |
diff --git a/src/core/test_core_api_peer2.conf b/src/core/test_core_api_peer2.conf index e3862da0f..2e994d27a 100644 --- a/src/core/test_core_api_peer2.conf +++ b/src/core/test_core_api_peer2.conf | |||
@@ -9,9 +9,9 @@ PORT = 22464 | |||
9 | [transport] | 9 | [transport] |
10 | PORT = 22465 | 10 | PORT = 22465 |
11 | PLUGINS = tcp | 11 | PLUGINS = tcp |
12 | #PREFIX = xterm -T transport2 -e | 12 | PREFIX = xterm -T transport2 -e |
13 | #PREFIX = xterm -T transport2 -e valgrind --tool=memcheck | 13 | #PREFIX = xterm -T transport2 -e valgrind --tool=memcheck |
14 | #DEBUG = YES | 14 | DEBUG = YES |
15 | 15 | ||
16 | [arm] | 16 | [arm] |
17 | PORT = 22466 | 17 | PORT = 22466 |
@@ -31,9 +31,9 @@ PORT = 22469 | |||
31 | 31 | ||
32 | [core] | 32 | [core] |
33 | PORT = 22470 | 33 | PORT = 22470 |
34 | #PREFIX = xterm -T core2 -e | 34 | PREFIX = xterm -T core2 -e |
35 | #PREFIX = xterm -T core2 -e valgrind --tool=memcheck | 35 | #PREFIX = xterm -T core2 -e valgrind --tool=memcheck |
36 | #DEBUG = YES | 36 | DEBUG = YES |
37 | 37 | ||
38 | [testing] | 38 | [testing] |
39 | WEAKRANDOM = YES | 39 | WEAKRANDOM = YES |