gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r32752 - gnunet/src/mesh


From: gnunet
Subject: [GNUnet-SVN] r32752 - gnunet/src/mesh
Date: Sat, 22 Mar 2014 03:58:16 +0100

Author: bartpolot
Date: 2014-03-22 03:58:15 +0100 (Sat, 22 Mar 2014)
New Revision: 32752

Modified:
   gnunet/src/mesh/gnunet-service-mesh_dht.c
Log:
- adjust retry time to expiration

Modified: gnunet/src/mesh/gnunet-service-mesh_dht.c
===================================================================
--- gnunet/src/mesh/gnunet-service-mesh_dht.c   2014-03-21 23:06:54 UTC (rev 
32751)
+++ gnunet/src/mesh/gnunet-service-mesh_dht.c   2014-03-22 02:58:15 UTC (rev 
32752)
@@ -254,6 +254,7 @@
   const struct GNUNET_HELLO_Message *hello;
   size_t size;
   struct GNUNET_TIME_Absolute expiration;
+  struct GNUNET_TIME_Absolute retry_time;
 
   if (0 != (tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN))
   {
@@ -276,6 +277,7 @@
     return;
   }
   expiration = GNUNET_HELLO_get_last_expiration (hello);
+  retry_time = GNUNET_TIME_absolute_get_remaining (expiration);
 
   LOG (GNUNET_ERROR_TYPE_DEBUG, "Hello %p size: %u\n", hello, size);
   memset (&phash, 0, sizeof (phash));
@@ -289,7 +291,7 @@
                   size,  /* Size of the data */
                   (const char *) hello, /* Data itself */
                   expiration,  /* Data expiration */
-                  GNUNET_TIME_UNIT_FOREVER_REL, /* Retry time */
+                  retry_time, /* Retry time */
                   NULL,         /* Continuation */
                   NULL);        /* Continuation closure */
   announce_id_task =




reply via email to

[Prev in Thread] Current Thread [Next in Thread]