#include "gnunet_transport_service.h"
#include <curl/curl.h>
-#define DEBUG_HOSTLIST_CLIENT GNUNET_NO
+#define DEBUG_HOSTLIST_CLIENT GNUNET_YES
/**
* Number of connections that we must have to NOT download
static void
schedule_hostlist_task ()
{
+ static int once;
struct GNUNET_TIME_Relative delay;
if (stats == NULL)
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,
#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?