From: Bart Polot Date: Thu, 24 Jul 2014 15:46:45 +0000 (+0000) Subject: - don't send keepalives if traffic is queued X-Git-Tag: initial-import-from-subversion-38251~3395 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e6fcba3026918611e9c1018d0369ca42974c913f;p=oweals%2Fgnunet.git - don't send keepalives if traffic is queued --- 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) if (0 < fc->queue_n) { LOG (GNUNET_ERROR_TYPE_INFO, "not sending keepalive, traffic in queue\n"); + return; } GNUNET_STATISTICS_update (stats, "# keepalives sent", 1, GNUNET_NO);