From 2a6dfaacbaf3916b39769d7a1c1a2a435a032e04 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 11 Mar 2010 19:03:08 +0000 Subject: [PATCH] debg --- src/hostlist/hostlist-client.c | 8 +++++++- src/hostlist/hostlist-server.c | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/hostlist/hostlist-client.c b/src/hostlist/hostlist-client.c index 3a6987b6b..feef6230b 100644 --- a/src/hostlist/hostlist-client.c +++ b/src/hostlist/hostlist-client.c @@ -31,7 +31,7 @@ #include "gnunet_transport_service.h" #include -#define DEBUG_HOSTLIST_CLIENT GNUNET_NO +#define DEBUG_HOSTLIST_CLIENT GNUNET_YES /** * Number of connections that we must have to NOT download @@ -607,6 +607,7 @@ check_task (void *cls, static void schedule_hostlist_task () { + static int once; struct GNUNET_TIME_Relative delay; if (stats == NULL) @@ -626,6 +627,11 @@ schedule_hostlist_task () gettext_noop("Minimum time between hostlist downloads"), hostlist_delay.value, GNUNET_YES); + if (0 == once) + { + delay = GNUNET_TIME_UNIT_ZERO; + once = 1; + } GNUNET_log (GNUNET_ERROR_TYPE_INFO, _("Have %u/%u connections. Will consider downloading hostlist in %llums\n"), connection_count, diff --git a/src/hostlist/hostlist-server.c b/src/hostlist/hostlist-server.c index 3615769ba..7cf743c64 100644 --- a/src/hostlist/hostlist-server.c +++ b/src/hostlist/hostlist-server.c @@ -30,7 +30,7 @@ #include "gnunet_hello_lib.h" #include "gnunet_peerinfo_service.h" -#define DEBUG_HOSTLIST_SERVER GNUNET_NO +#define DEBUG_HOSTLIST_SERVER GNUNET_YES /** * How often should we recalculate our response to hostlist requests? -- 2.25.1