aboutsummaryrefslogtreecommitdiff
path: root/src/dht
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-10-24 21:46:24 +0000
committerChristian Grothoff <christian@grothoff.org>2011-10-24 21:46:24 +0000
commitec422e61744ed0568b13cbb4c9fd5e46920edbc0 (patch)
tree05757a4c1ff64fddfa498531e97f23c892be2e97 /src/dht
parent34433478ba9ea7073ef7475a3816c7ceb7e7b04c (diff)
downloadgnunet-ec422e61744ed0568b13cbb4c9fd5e46920edbc0.tar.gz
gnunet-ec422e61744ed0568b13cbb4c9fd5e46920edbc0.zip
more logging for insane bug 1829
Diffstat (limited to 'src/dht')
-rw-r--r--src/dht/gnunet-service-dht_clients.c18
1 files changed, 18 insertions, 0 deletions
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)
642 off += msize; 642 off += msize;
643 } 643 }
644 process_pending_messages (client); 644 process_pending_messages (client);
645 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
646 "Transmitted %u/%u bytes to client %p\n",
647 (unsigned int) off,
648 (unsigned int) size,
649 client->client_handle);
645 return off; 650 return off;
646} 651}
647 652
@@ -655,7 +660,20 @@ static void
655process_pending_messages (struct ClientList *client) 660process_pending_messages (struct ClientList *client)
656{ 661{
657 if ((client->pending_head == NULL) || (client->transmit_handle != NULL)) 662 if ((client->pending_head == NULL) || (client->transmit_handle != NULL))
663 {
664 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
665 "Not asking for transmission to %p now: %s\n",
666 client->client_handle,
667 client->pending_head == NULL
668 ? "no more messages"
669 : "request already pending");
658 return; 670 return;
671 }
672 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
673 "Asking for transmission of %u bytes to client %p\n",
674 ntohs (client->pending_head->
675 msg->size),
676 client->client_handle);
659 client->transmit_handle = 677 client->transmit_handle =
660 GNUNET_SERVER_notify_transmit_ready (client->client_handle, 678 GNUNET_SERVER_notify_transmit_ready (client->client_handle,
661 ntohs (client->pending_head-> 679 ntohs (client->pending_head->