aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Makefile.am1
-rw-r--r--src/testing/test_testing.c4
-rw-r--r--src/testing/testing.c4
-rw-r--r--src/util/connection.c13
4 files changed, 16 insertions, 6 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index c30045c9b..50d75916b 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -20,7 +20,6 @@ SUBDIRS = \
20 template \ 20 template \
21 transport \ 21 transport \
22 core \ 22 core \
23 testing \
24 $(HOSTLIST_DIR) \ 23 $(HOSTLIST_DIR) \
25 topology \ 24 topology \
26 fs \ 25 fs \
diff --git a/src/testing/test_testing.c b/src/testing/test_testing.c
index ab3bc10be..886427402 100644
--- a/src/testing/test_testing.c
+++ b/src/testing/test_testing.c
@@ -24,7 +24,7 @@
24#include "platform.h" 24#include "platform.h"
25#include "gnunet_testing_lib.h" 25#include "gnunet_testing_lib.h"
26 26
27#define VERBOSE GNUNET_NO 27#define VERBOSE GNUNET_YES
28 28
29static int ok; 29static int ok;
30 30
@@ -91,7 +91,7 @@ check ()
91 GNUNET_GETOPT_OPTION_END 91 GNUNET_GETOPT_OPTION_END
92 }; 92 };
93 GNUNET_PROGRAM_run ((sizeof (argv) / sizeof (char *)) - 1, 93 GNUNET_PROGRAM_run ((sizeof (argv) / sizeof (char *)) - 1,
94 argv, "test-tesing", "nohelp", 94 argv, "test-testing", "nohelp",
95 options, &run, &ok); 95 options, &run, &ok);
96 return ok; 96 return ok;
97} 97}
diff --git a/src/testing/testing.c b/src/testing/testing.c
index 6ecb9c944..e4cc74827 100644
--- a/src/testing/testing.c
+++ b/src/testing/testing.c
@@ -40,13 +40,13 @@
40#include "gnunet_testing_lib.h" 40#include "gnunet_testing_lib.h"
41#include "gnunet_transport_service.h" 41#include "gnunet_transport_service.h"
42 42
43#define DEBUG_TESTING GNUNET_NO 43#define DEBUG_TESTING GNUNET_YES
44 44
45/** 45/**
46 * How long do we wait after starting gnunet-service-arm 46 * How long do we wait after starting gnunet-service-arm
47 * for the core service to be alive? 47 * for the core service to be alive?
48 */ 48 */
49#define ARM_START_WAIT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 120) 49#define ARM_START_WAIT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 2)
50 50
51/** 51/**
52 * How many times are we willing to try to wait for "scp" or 52 * How many times are we willing to try to wait for "scp" or
diff --git a/src/util/connection.c b/src/util/connection.c
index 6f2b5a349..3cf2ae475 100644
--- a/src/util/connection.c
+++ b/src/util/connection.c
@@ -527,6 +527,11 @@ destroy_continuation (void *cls,
527 GNUNET_break (GNUNET_OK == GNUNET_NETWORK_socket_close (sock->sock)); 527 GNUNET_break (GNUNET_OK == GNUNET_NETWORK_socket_close (sock->sock));
528 GNUNET_free_non_null (sock->addr); 528 GNUNET_free_non_null (sock->addr);
529 GNUNET_free_non_null (sock->hostname); 529 GNUNET_free_non_null (sock->hostname);
530#if DEBUG_CONNECTION
531 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
532 "Freeing memory of connection %p.\n",
533 sock);
534#endif
530 GNUNET_free (sock); 535 GNUNET_free (sock);
531} 536}
532 537
@@ -774,7 +779,8 @@ try_connect_using_address (void *cls,
774 { 779 {
775#if DEBUG_CONNECTION 780#if DEBUG_CONNECTION
776 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 781 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
777 "Connection has already been destroyed.\n"); 782 "Connection %p has already been destroyed.\n",
783 h);
778#endif 784#endif
779 return; /* already destroyed */ 785 return; /* already destroyed */
780 } 786 }
@@ -1565,6 +1571,11 @@ GNUNET_CONNECTION_notify_transmit_ready_cancel (struct
1565 GNUNET_assert (h->notify_ready != NULL); 1571 GNUNET_assert (h->notify_ready != NULL);
1566 if (0 != (h->sh->ccs & COCO_TRANSMIT_READY)) 1572 if (0 != (h->sh->ccs & COCO_TRANSMIT_READY))
1567 { 1573 {
1574#if DEBUG_CONNECTION
1575 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
1576 "notify_transmit_ready_cancel cancels timeout_task (%p)\n",
1577 h);
1578#endif
1568 GNUNET_SCHEDULER_cancel (h->sh->sched, h->timeout_task); 1579 GNUNET_SCHEDULER_cancel (h->sh->sched, h->timeout_task);
1569 h->timeout_task = GNUNET_SCHEDULER_NO_TASK; 1580 h->timeout_task = GNUNET_SCHEDULER_NO_TASK;
1570 h->sh->ccs -= COCO_TRANSMIT_READY; 1581 h->sh->ccs -= COCO_TRANSMIT_READY;