From 097c986edf4a295275ed6c9f1e5cede500b2dc96 Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Mon, 21 Jul 2014 00:15:26 +0000 Subject: - schedule next keepalive even if tunnel is still in SEARCHING --- src/cadet/gnunet-service-cadet_connection.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/cadet') diff --git a/src/cadet/gnunet-service-cadet_connection.c b/src/cadet/gnunet-service-cadet_connection.c index fc489df23..3ef421069 100644 --- a/src/cadet/gnunet-service-cadet_connection.c +++ b/src/cadet/gnunet-service-cadet_connection.c @@ -898,8 +898,7 @@ send_connection_keepalive (struct CadetConnection *c, int fwd) 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 @@ connection_maintain (struct CadetConnection *c, int fwd) { /* 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_keepalive (struct CadetConnection *c, int fwd, int shutdown) connection_maintain (c, fwd); - /* Next execution will be scheduled by message_sent */ + /* Next execution will be scheduled by message_sent or _maintain*/ } -- cgit v1.2.3