[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r17736 - gnunet/src/dht
From: |
gnunet |
Subject: |
[GNUnet-SVN] r17736 - gnunet/src/dht |
Date: |
Mon, 24 Oct 2011 22:53:44 +0200 |
Author: grothoff
Date: 2011-10-24 22:53:44 +0200 (Mon, 24 Oct 2011)
New Revision: 17736
Modified:
gnunet/src/dht/dht_api.c
gnunet/src/dht/gnunet-service-dht_clients.c
Log:
even more logging
Modified: gnunet/src/dht/dht_api.c
===================================================================
--- gnunet/src/dht/dht_api.c 2011-10-24 17:00:26 UTC (rev 17735)
+++ gnunet/src/dht/dht_api.c 2011-10-24 20:53:44 UTC (rev 17736)
@@ -435,7 +435,9 @@
if (dht_msg->unique_id != get_handle->unique_id)
{
/* UID mismatch */
- LOG (GNUNET_ERROR_TYPE_DEBUG, "Ignoring reply (UID mismatch: %llu/%llu)\n",
+ LOG (GNUNET_ERROR_TYPE_DEBUG,
+ "Ignoring reply for %s: UID mismatch: %llu/%llu\n",
+ GNUNET_h2s (key),
dht_msg->unique_id, get_handle->unique_id);
return GNUNET_YES;
}
@@ -455,6 +457,10 @@
return GNUNET_NO;
}
data_length = msize - meta_length;
+ LOG (GNUNET_ERROR_TYPE_DEBUG,
+ "Giving %u byte reply for %s to application\n",
+ (unsigned int) data_length,
+ GNUNET_h2s (key));
put_path = (const struct GNUNET_PeerIdentity *) &dht_msg[1];
get_path = &put_path[put_path_length];
data = &get_path[get_path_length];
@@ -498,8 +504,10 @@
do_disconnect (handle);
return;
}
- LOG (GNUNET_ERROR_TYPE_DEBUG, "Received reply from DHT service\n");
dht_msg = (const struct GNUNET_DHT_ClientResultMessage *) msg;
+ LOG (GNUNET_ERROR_TYPE_DEBUG,
+ "Received reply for `%s' from DHT service\n",
+ GNUNET_h2s (&dht_msg->key));
GNUNET_CONTAINER_multihashmap_get_multiple (handle->active_requests,
&dht_msg->key, &process_reply,
(void *) dht_msg);
Modified: gnunet/src/dht/gnunet-service-dht_clients.c
===================================================================
--- gnunet/src/dht/gnunet-service-dht_clients.c 2011-10-24 17:00:26 UTC (rev
17735)
+++ gnunet/src/dht/gnunet-service-dht_clients.c 2011-10-24 20:53:44 UTC (rev
17736)
@@ -622,6 +622,9 @@
if (buf == NULL)
{
/* client disconnected */
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+ "Client %p disconnected, pending messages will be discarded\n",
+ client->client_handle);
return 0;
}
off = 0;
@@ -632,6 +635,10 @@
reply);
memcpy (&cbuf[off], reply->msg, msize);
GNUNET_free (reply);
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+ "Transmitting %u bytes to client %p\n",
+ msize,
+ client->client_handle);
off += msize;
}
process_pending_messages (client);
@@ -824,7 +831,7 @@
reply = (struct GNUNET_DHT_ClientResultMessage*) &pm[1];
reply->unique_id = record->unique_id;
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
- "Queueing reply to query %s for peer %p\n",
+ "Queueing reply to query %s for client %p\n",
GNUNET_h2s (key),
record->client->client_handle);
add_pending_message (record->client, pm);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r17736 - gnunet/src/dht,
gnunet <=