aboutsummaryrefslogtreecommitdiff
path: root/src/cadet
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2014-07-24 15:46:45 +0000
committerBart Polot <bart@net.in.tum.de>2014-07-24 15:46:45 +0000
commite6fcba3026918611e9c1018d0369ca42974c913f (patch)
treef8e96b68622e53c2257194be313669555fc920d5 /src/cadet
parente77ffe8825f2f22478ab8e26f2edb6a309c3fb0a (diff)
downloadgnunet-e6fcba3026918611e9c1018d0369ca42974c913f.tar.gz
gnunet-e6fcba3026918611e9c1018d0369ca42974c913f.zip
- don't send keepalives if traffic is queued
Diffstat (limited to 'src/cadet')
-rw-r--r--src/cadet/gnunet-service-cadet_connection.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cadet/gnunet-service-cadet_connection.c b/src/cadet/gnunet-service-cadet_connection.c
index 5c28f9e4c..3aff5c33f 100644
--- a/src/cadet/gnunet-service-cadet_connection.c
+++ b/src/cadet/gnunet-service-cadet_connection.c
@@ -910,6 +910,7 @@ send_connection_keepalive (struct CadetConnection *c, int fwd)
910 if (0 < fc->queue_n) 910 if (0 < fc->queue_n)
911 { 911 {
912 LOG (GNUNET_ERROR_TYPE_INFO, "not sending keepalive, traffic in queue\n"); 912 LOG (GNUNET_ERROR_TYPE_INFO, "not sending keepalive, traffic in queue\n");
913 return;
913 } 914 }
914 915
915 GNUNET_STATISTICS_update (stats, "# keepalives sent", 1, GNUNET_NO); 916 GNUNET_STATISTICS_update (stats, "# keepalives sent", 1, GNUNET_NO);