gnunet-svn
[Top][All Lists]
Advanced

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

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


From: gnunet
Subject: [GNUnet-SVN] r31435 - gnunet/src/mesh
Date: Mon, 16 Dec 2013 20:20:47 +0100

Author: bartpolot
Date: 2013-12-16 20:20:46 +0100 (Mon, 16 Dec 2013)
New Revision: 31435

Modified:
   gnunet/src/mesh/gnunet-service-mesh_connection.c
Log:
- fix timing out of connections


Modified: gnunet/src/mesh/gnunet-service-mesh_connection.c
===================================================================
--- gnunet/src/mesh/gnunet-service-mesh_connection.c    2013-12-16 19:15:25 UTC 
(rev 31434)
+++ gnunet/src/mesh/gnunet-service-mesh_connection.c    2013-12-16 19:20:46 UTC 
(rev 31435)
@@ -1045,13 +1045,14 @@
   c->fwd_maintenance_task = GNUNET_SCHEDULER_NO_TASK;
   if (0 != (tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN))
     return;
-  LOG (GNUNET_ERROR_TYPE_DEBUG,
-              "Connection %s[%X] FWD timed out. Destroying.\n",
-              GMT_2s (c->t),
-              c->id);
 
+  LOG (GNUNET_ERROR_TYPE_DEBUG, "Connection %s FWD timed out. Destroying.\n",
+       GMC_2s (c);
   if (GMC_is_origin (c, GNUNET_YES)) /* If local, leave. */
+  {
+    GNUNET_break (0);
     return;
+  }
 
   GMC_destroy (c);
 }
@@ -1074,12 +1075,14 @@
   if (0 != (tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN))
     return;
 
-  LOG (GNUNET_ERROR_TYPE_DEBUG,
-              "Connection %s[%X] FWD timed out. Destroying.\n",
-              GMT_2s (c->t), c->id);
+  LOG (GNUNET_ERROR_TYPE_DEBUG, "Connection %s BCK timed out. Destroying.\n",
+       GMC_2s (c));
 
   if (GMC_is_origin (c, GNUNET_NO)) /* If local, leave. */
+  {
+    GNUNET_break (0);
     return;
+  }
 
   GMC_destroy (c);
 }




reply via email to

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