gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r32550 - gnunet/src/mesh


From: gnunet
Subject: [GNUnet-SVN] r32550 - gnunet/src/mesh
Date: Thu, 6 Mar 2014 02:36:32 +0100

Author: bartpolot
Date: 2014-03-06 02:36:32 +0100 (Thu, 06 Mar 2014)
New Revision: 32550

Modified:
   gnunet/src/mesh/gnunet-service-mesh_connection.c
   gnunet/src/mesh/gnunet-service-mesh_tunnel.c
Log:
- add keepalive stats

Modified: gnunet/src/mesh/gnunet-service-mesh_connection.c
===================================================================
--- gnunet/src/mesh/gnunet-service-mesh_connection.c    2014-03-06 01:36:30 UTC 
(rev 32549)
+++ gnunet/src/mesh/gnunet-service-mesh_connection.c    2014-03-06 01:36:32 UTC 
(rev 32550)
@@ -862,6 +862,7 @@
   LOG (GNUNET_ERROR_TYPE_INFO,
        "keepalive %s for connection %s\n",
        GM_f2s (fwd), GMC_2s (c));
+  GNUNET_STATISTICS_update (stats, "# keepalives sent", 1, GNUNET_NO);
 
   GNUNET_assert (NULL != c->t);
   msg.size = htons (sizeof (msg));

Modified: gnunet/src/mesh/gnunet-service-mesh_tunnel.c
===================================================================
--- gnunet/src/mesh/gnunet-service-mesh_tunnel.c        2014-03-06 01:36:30 UTC 
(rev 32549)
+++ gnunet/src/mesh/gnunet-service-mesh_tunnel.c        2014-03-06 01:36:32 UTC 
(rev 32550)
@@ -1585,6 +1585,7 @@
   {
     case GNUNET_MESSAGE_TYPE_MESH_KEEPALIVE:
       /* Do nothing, connection aleady got updated. */
+      GNUNET_STATISTICS_update (stats, "# keepalives received", 1, GNUNET_NO);
       break;
 
     case GNUNET_MESSAGE_TYPE_MESH_DATA:




reply via email to

[Prev in Thread] Current Thread [Next in Thread]