gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r33839 - gnunet/src/cadet


From: gnunet
Subject: [GNUnet-SVN] r33839 - gnunet/src/cadet
Date: Wed, 25 Jun 2014 02:33:12 +0200

Author: bartpolot
Date: 2014-06-25 02:33:11 +0200 (Wed, 25 Jun 2014)
New Revision: 33839

Modified:
   gnunet/src/cadet/gnunet-service-cadet_tunnel.c
   gnunet/src/cadet/test_cadet.c
Log:
- log

Modified: gnunet/src/cadet/gnunet-service-cadet_tunnel.c
===================================================================
--- gnunet/src/cadet/gnunet-service-cadet_tunnel.c      2014-06-24 23:45:33 UTC 
(rev 33838)
+++ gnunet/src/cadet/gnunet-service-cadet_tunnel.c      2014-06-25 00:33:11 UTC 
(rev 33839)
@@ -1766,6 +1766,7 @@
     GNUNET_break_op (0);
     return;
   }
+
   if (NULL == t->kx_ctx)
     create_kx_ctx (t);
   if (0 != memcmp (&t->peers_ephemeral_key, &msg->ephemeral_key,

Modified: gnunet/src/cadet/test_cadet.c
===================================================================
--- gnunet/src/cadet/test_cadet.c       2014-06-24 23:45:33 UTC (rev 33838)
+++ gnunet/src/cadet/test_cadet.c       2014-06-25 00:33:11 UTC (rev 33839)
@@ -33,7 +33,7 @@
 /**
  * How namy messages to send
  */
-#define TOTAL_PACKETS 1000
+#define TOTAL_PACKETS 2000
 
 /**
  * How long until we give up on connecting the peers?
@@ -249,9 +249,14 @@
   long line = (long) cls;
   unsigned int i;
 
-  GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
-              "disconnecting cadet service of peers, called from line %ld\n",
-              line);
+  if ((GNUNET_SCHEDULER_REASON_SHUTDOWN & tc->reason) != 0)
+    GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+                "disconnecting cadet peers due to SHUTDOWN! called from %ld\n",
+                line);
+  else
+    GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+                "disconnecting cadet service of peers, called from line %ld\n",
+                line);
   disconnect_task = GNUNET_SCHEDULER_NO_TASK;
   for (i = 0; i < 2; i++)
   {
@@ -436,6 +441,7 @@
   {
     if (GNUNET_SCHEDULER_NO_TASK != disconnect_task)
     {
+      GNUNET_log (GNUNET_ERROR_TYPE_INFO, " reschedule timeout\n");
       GNUNET_SCHEDULER_cancel (disconnect_task);
       disconnect_task = GNUNET_SCHEDULER_add_delayed (SHORT_TIME,
                                                       &disconnect_cadet_peers,




reply via email to

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