From e2f5d12d485a6160ca1fb4ed277aaab10bfda54b Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Tue, 21 Jan 2014 03:04:58 +0000 Subject: [PATCH] - dont schedule keepalive on connection creation, wait for first creation message to be sent --- src/mesh/gnunet-service-mesh_connection.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/mesh/gnunet-service-mesh_connection.c b/src/mesh/gnunet-service-mesh_connection.c index 40919ef34..5954941e6 100644 --- a/src/mesh/gnunet-service-mesh_connection.c +++ b/src/mesh/gnunet-service-mesh_connection.c @@ -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; } -- 2.25.1