aboutsummaryrefslogtreecommitdiff
path: root/src/cadet
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2014-07-21 00:15:26 +0000
committerBart Polot <bart@net.in.tum.de>2014-07-21 00:15:26 +0000
commit097c986edf4a295275ed6c9f1e5cede500b2dc96 (patch)
tree1bbb85be793d379a2450bf7bce5added221c8bc6 /src/cadet
parente8e5fe03777690cf98b3c23edd09001ff13533fd (diff)
downloadgnunet-097c986edf4a295275ed6c9f1e5cede500b2dc96.tar.gz
gnunet-097c986edf4a295275ed6c9f1e5cede500b2dc96.zip
- schedule next keepalive even if tunnel is still in SEARCHING
Diffstat (limited to 'src/cadet')
-rw-r--r--src/cadet/gnunet-service-cadet_connection.c6
1 files changed, 3 insertions, 3 deletions
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)
898 struct GNUNET_MessageHeader msg; 898 struct GNUNET_MessageHeader msg;
899 struct CadetFlowControl *fc; 899 struct CadetFlowControl *fc;
900 900
901 LOG (GNUNET_ERROR_TYPE_INFO, 901 LOG (GNUNET_ERROR_TYPE_INFO, "keepalive %s for connection %s\n",
902 "keepalive %s for connection %s\n",
903 GC_f2s (fwd), GCC_2s (c)); 902 GC_f2s (fwd), GCC_2s (c));
904 903
905 fc = fwd ? &c->fwd_fc : &c->bck_fc; 904 fc = fwd ? &c->fwd_fc : &c->bck_fc;
@@ -964,6 +963,7 @@ connection_maintain (struct CadetConnection *c, int fwd)
964 { 963 {
965 /* TODO DHT GET with RO_BART */ 964 /* TODO DHT GET with RO_BART */
966 LOG (GNUNET_ERROR_TYPE_INFO, "not sending keepalive, tunnel SEARCHING\n"); 965 LOG (GNUNET_ERROR_TYPE_INFO, "not sending keepalive, tunnel SEARCHING\n");
966 schedule_next_keepalive (c, fwd);
967 return; 967 return;
968 } 968 }
969 switch (c->state) 969 switch (c->state)
@@ -1008,7 +1008,7 @@ connection_keepalive (struct CadetConnection *c, int fwd, int shutdown)
1008 1008
1009 connection_maintain (c, fwd); 1009 connection_maintain (c, fwd);
1010 1010
1011 /* Next execution will be scheduled by message_sent */ 1011 /* Next execution will be scheduled by message_sent or _maintain*/
1012} 1012}
1013 1013
1014 1014