gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r33998 - gnunet/src/cadet


From: gnunet
Subject: [GNUnet-SVN] r33998 - gnunet/src/cadet
Date: Mon, 21 Jul 2014 02:15:26 +0200

Author: bartpolot
Date: 2014-07-21 02:15:26 +0200 (Mon, 21 Jul 2014)
New Revision: 33998

Modified:
   gnunet/src/cadet/gnunet-service-cadet_connection.c
Log:
- schedule next keepalive even if tunnel is still in SEARCHING

Modified: gnunet/src/cadet/gnunet-service-cadet_connection.c
===================================================================
--- gnunet/src/cadet/gnunet-service-cadet_connection.c  2014-07-21 00:15:25 UTC 
(rev 33997)
+++ gnunet/src/cadet/gnunet-service-cadet_connection.c  2014-07-21 00:15:26 UTC 
(rev 33998)
@@ -898,8 +898,7 @@
   struct GNUNET_MessageHeader msg;
   struct CadetFlowControl *fc;
 
-  LOG (GNUNET_ERROR_TYPE_INFO,
-       "keepalive %s for connection %s\n",
+  LOG (GNUNET_ERROR_TYPE_INFO, "keepalive %s for connection %s\n",
        GC_f2s (fwd), GCC_2s (c));
 
   fc = fwd ? &c->fwd_fc : &c->bck_fc;
@@ -964,6 +963,7 @@
   {
     /* TODO DHT GET with RO_BART */
     LOG (GNUNET_ERROR_TYPE_INFO, "not sending keepalive, tunnel SEARCHING\n");
+    schedule_next_keepalive (c, fwd);
     return;
   }
   switch (c->state)
@@ -1008,7 +1008,7 @@
 
   connection_maintain (c, fwd);
 
-  /* Next execution will be scheduled by message_sent */
+  /* Next execution will be scheduled by message_sent or _maintain*/
 }
 
 




reply via email to

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