[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r32954 - gnunet/src/mesh
From: |
gnunet |
Subject: |
[GNUnet-SVN] r32954 - gnunet/src/mesh |
Date: |
Tue, 8 Apr 2014 02:39:41 +0200 |
Author: bartpolot
Date: 2014-04-08 02:39:41 +0200 (Tue, 08 Apr 2014)
New Revision: 32954
Modified:
gnunet/src/mesh/gnunet-service-mesh_connection.c
Log:
- dont send keepalives if payload traffic is already queued
Modified: gnunet/src/mesh/gnunet-service-mesh_connection.c
===================================================================
--- gnunet/src/mesh/gnunet-service-mesh_connection.c 2014-04-08 00:39:40 UTC
(rev 32953)
+++ gnunet/src/mesh/gnunet-service-mesh_connection.c 2014-04-08 00:39:41 UTC
(rev 32954)
@@ -878,10 +878,18 @@
send_connection_keepalive (struct MeshConnection *c, int fwd)
{
struct GNUNET_MessageHeader msg;
+ struct MeshFlowControl *fc;
LOG (GNUNET_ERROR_TYPE_INFO,
"keepalive %s for connection %s\n",
GM_f2s (fwd), GMC_2s (c));
+
+ fc = fwd ? &c->fwd_fc : &c->bck_fc;
+ if (0 < fc->queue_n)
+ {
+ LOG (GNUNET_ERROR_TYPE_INFO, "not sending keepalive, traffic in queue\n");
+ }
+
GNUNET_STATISTICS_update (stats, "# keepalives sent", 1, GNUNET_NO);
GNUNET_assert (NULL != c->t);
@@ -2896,7 +2904,7 @@
{
GNUNET_STATISTICS_update (stats, "# messages dropped (buffer full)",
1, GNUNET_NO);
- GNUNET_break (0); //FIXME keepalives can trigger this, dont send if queue
+ GNUNET_break (0);
LOG (GNUNET_ERROR_TYPE_DEBUG,
"queue full: %u/%u\n",
fc->queue_n, fc->queue_max);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r32954 - gnunet/src/mesh,
gnunet <=