From: Christian Grothoff Date: Mon, 24 Oct 2011 21:46:24 +0000 (+0000) Subject: more logging for insane bug 1829 X-Git-Tag: initial-import-from-subversion-38251~16270 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ec422e61744ed0568b13cbb4c9fd5e46920edbc0;p=oweals%2Fgnunet.git more logging for insane bug 1829 --- diff --git a/src/dht/gnunet-service-dht_clients.c b/src/dht/gnunet-service-dht_clients.c index 60216bcc9..b0641d6b2 100644 --- a/src/dht/gnunet-service-dht_clients.c +++ b/src/dht/gnunet-service-dht_clients.c @@ -642,6 +642,11 @@ send_reply_to_client (void *cls, size_t size, void *buf) 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 @@ static void 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->