- dont schedule keepalive on connection creation, wait for first creation message...
authorBart Polot <bart@net.in.tum.de>
Tue, 21 Jan 2014 03:04:58 +0000 (03:04 +0000)
committerBart Polot <bart@net.in.tum.de>
Tue, 21 Jan 2014 03:04:58 +0000 (03:04 +0000)
src/mesh/gnunet-service-mesh_connection.c

index 40919ef34f295802b01fadc56547f4f1cba7cdbe..5954941e6e4034039c1eeb333f93bf91f83b563c 100644 (file)
@@ -1269,7 +1269,7 @@ connection_reset_timeout (struct MeshConnection *c, int fwd)
 
   if (GMC_is_origin (c, fwd)) /* Startpoint */
   {
-    f  = fwd ? &connection_fwd_keepalive : &connection_bck_keepalive;
+    f = fwd ? &connection_fwd_keepalive : &connection_bck_keepalive;
     *ti = GNUNET_SCHEDULER_add_delayed (refresh_connection_time, f, c);
   }
   else /* Relay, endpoint. */
@@ -1277,7 +1277,7 @@ connection_reset_timeout (struct MeshConnection *c, int fwd)
     struct GNUNET_TIME_Relative delay;
 
     delay = GNUNET_TIME_relative_multiply (refresh_connection_time, 4);
-    f  = fwd ? &connection_fwd_timeout : &connection_bck_timeout;
+    f = fwd ? &connection_fwd_timeout : &connection_bck_timeout;
     *ti = GNUNET_SCHEDULER_add_delayed (delay, f, c);
   }
 }
@@ -2484,13 +2484,6 @@ GMC_new (const struct GNUNET_HashCode *cid,
     return NULL;
   }
 
-  if (0 == own_pos)
-  {
-    c->fwd_maintenance_task =
-      GNUNET_SCHEDULER_add_delayed (create_connection_time,
-                                    &connection_fwd_keepalive, c);
-  }
-
   return c;
 }