gnunet-svn
[Top][All Lists]
Advanced

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

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


From: gnunet
Subject: [GNUnet-SVN] r30406 - gnunet/src/mesh
Date: Thu, 24 Oct 2013 18:05:16 +0200

Author: bartpolot
Date: 2013-10-24 18:05:16 +0200 (Thu, 24 Oct 2013)
New Revision: 30406

Modified:
   gnunet/src/mesh/gnunet-service-mesh_connection.c
Log:
- fix connection destroy accounting


Modified: gnunet/src/mesh/gnunet-service-mesh_connection.c
===================================================================
--- gnunet/src/mesh/gnunet-service-mesh_connection.c    2013-10-24 14:21:28 UTC 
(rev 30405)
+++ gnunet/src/mesh/gnunet-service-mesh_connection.c    2013-10-24 16:05:16 UTC 
(rev 30406)
@@ -446,6 +446,7 @@
   fc = fwd ? &c->fwd_fc : &c->bck_fc;
   LOG (GNUNET_ERROR_TYPE_DEBUG, "!  sent %s\n", GNUNET_MESH_DEBUG_M2S (type));
   LOG (GNUNET_ERROR_TYPE_DEBUG, "!  Q_N- %p %u\n", fc, fc->queue_n);
+  LOG (GNUNET_ERROR_TYPE_DEBUG, "!  C_P- %p %u\n", c, c->pending_messages);
   c->pending_messages--;
   if (GNUNET_YES == c->destroy && 0 == c->pending_messages)
   {
@@ -2204,6 +2205,7 @@
     return; /* Drop this message */
   }
 
+  LOG (GNUNET_ERROR_TYPE_DEBUG, "  C_P+ %p %u\n", c, c->pending_messages);
   c->pending_messages++;
 
   GMP_queue_add (get_hop (c, fwd), data, type, size, c, fwd,
@@ -2229,6 +2231,9 @@
   GMP_queue_add (get_next_hop (connection), NULL,
                  GNUNET_MESSAGE_TYPE_MESH_CONNECTION_CREATE,
                  size, connection, GNUNET_YES, &message_sent, NULL);
+  LOG (GNUNET_ERROR_TYPE_DEBUG, "  C_P+ %p %u (create)\n",
+       connection, connection->pending_messages);
+  connection->pending_messages++;
   state = GMT_get_state (connection->t);
   if (MESH_TUNNEL3_SEARCHING == state || MESH_TUNNEL3_NEW == state)
     GMT_change_state (connection->t, MESH_TUNNEL3_WAITING);




reply via email to

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