gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r17738 - gnunet/src/dht


From: gnunet
Subject: [GNUnet-SVN] r17738 - gnunet/src/dht
Date: Mon, 24 Oct 2011 23:46:25 +0200

Author: grothoff
Date: 2011-10-24 23:46:24 +0200 (Mon, 24 Oct 2011)
New Revision: 17738

Modified:
   gnunet/src/dht/gnunet-service-dht_clients.c
Log:
more logging for insane bug 1829

Modified: gnunet/src/dht/gnunet-service-dht_clients.c
===================================================================
--- gnunet/src/dht/gnunet-service-dht_clients.c 2011-10-24 21:11:32 UTC (rev 
17737)
+++ gnunet/src/dht/gnunet-service-dht_clients.c 2011-10-24 21:46:24 UTC (rev 
17738)
@@ -642,6 +642,11 @@
     off += msize;
   }
   process_pending_messages (client);
+  GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+             "Transmitted %u/%u bytes to client %p\n",
+             (unsigned int) off,
+             (unsigned int) size,
+             client->client_handle);
   return off;
 }
 
@@ -655,7 +660,20 @@
 process_pending_messages (struct ClientList *client)
 {
   if ((client->pending_head == NULL) || (client->transmit_handle != NULL))
+  {
+    GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+               "Not asking for transmission to %p now: %s\n",
+               client->client_handle,
+               client->pending_head == NULL 
+               ? "no more messages"
+               : "request already pending");
     return;
+  }
+  GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+             "Asking for transmission of %u bytes to client %p\n",
+             ntohs (client->pending_head->
+                    msg->size),
+             client->client_handle);
   client->transmit_handle =
       GNUNET_SERVER_notify_transmit_ready (client->client_handle,
                                            ntohs (client->pending_head->




reply via email to

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