gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r36598 - gnunet/src/transport


From: gnunet
Subject: [GNUnet-SVN] r36598 - gnunet/src/transport
Date: Tue, 27 Oct 2015 15:18:14 +0100

Author: grothoff
Date: 2015-10-27 15:18:14 +0100 (Tue, 27 Oct 2015)
New Revision: 36598

Modified:
   gnunet/src/transport/gnunet-service-transport_clients.c
Log:
-extra logging for #4025

Modified: gnunet/src/transport/gnunet-service-transport_clients.c
===================================================================
--- gnunet/src/transport/gnunet-service-transport_clients.c     2015-10-27 
13:42:08 UTC (rev 36597)
+++ gnunet/src/transport/gnunet-service-transport_clients.c     2015-10-27 
14:18:14 UTC (rev 36598)
@@ -693,6 +693,11 @@
    * At what time did we receive the message?
    */
   struct GNUNET_TIME_Absolute send_time;
+
+  /**
+   * Unique ID, for logging.
+   */
+  unsigned long long uuid;
 };
 
 
@@ -742,6 +747,9 @@
   if (GST_neighbours_test_connected (&stcc->target))
   {
     /* Only send confirmation if we are still connected */
+    GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+                "Sending SEND_OK for transmission request %llu\n",
+                stcc->uuid);
     send_ok_msg.header.size = htons (sizeof (send_ok_msg));
     send_ok_msg.header.type = htons (GNUNET_MESSAGE_TYPE_TRANSPORT_SEND_OK);
     send_ok_msg.bytes_msg = htonl (bytes_payload);
@@ -769,6 +777,7 @@
                      struct GNUNET_SERVER_Client *client,
                      const struct GNUNET_MessageHeader *message)
 {
+  static unsigned long long uuid_gen;
   const struct OutboundMessage *obm;
   const struct GNUNET_MessageHeader *obmm;
   struct SendTransmitContinuationContext *stcc;
@@ -821,7 +830,8 @@
     return;
   }
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
-              "Received SEND request for `%s' and first message of type %u and 
total size %u\n",
+              "Received SEND request %llu for `%s' and first message of type 
%u and total size %u\n",
+              uuid_gen,
               GNUNET_i2s (&obm->peer),
               ntohs (obmm->type),
               msize);
@@ -831,6 +841,7 @@
   stcc->target = obm->peer;
   stcc->client = client;
   stcc->send_time = GNUNET_TIME_absolute_get ();
+  stcc->uuid = uuid_gen++;
   GNUNET_SERVER_client_keep (client);
   GST_manipulation_send (&obm->peer,
                          obmm,




reply via email to

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