debg
authorChristian Grothoff <christian@grothoff.org>
Thu, 11 Mar 2010 19:03:08 +0000 (19:03 +0000)
committerChristian Grothoff <christian@grothoff.org>
Thu, 11 Mar 2010 19:03:08 +0000 (19:03 +0000)
src/hostlist/hostlist-client.c
src/hostlist/hostlist-server.c

index 3a6987b6b81d7c163c1ee0c4d6f62afab7275eb6..feef6230b92884d0bbcb2546a0d6cf282514dee0 100644 (file)
@@ -31,7 +31,7 @@
 #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
@@ -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,
index 3615769ba3e261095bbb670c2df9d086167fc273..7cf743c64e0c954abc2f47c059acac27eed63d38 100644 (file)
@@ -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?