[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r20119 - gnunet/src/dht
From: |
gnunet |
Subject: |
[GNUnet-SVN] r20119 - gnunet/src/dht |
Date: |
Tue, 28 Feb 2012 18:06:27 +0100 |
Author: bartpolot
Date: 2012-02-28 18:06:27 +0100 (Tue, 28 Feb 2012)
New Revision: 20119
Modified:
gnunet/src/dht/test_dht_twopeer.c
Log:
- Give more time for GET to suceed, minor cleanups
Modified: gnunet/src/dht/test_dht_twopeer.c
===================================================================
--- gnunet/src/dht/test_dht_twopeer.c 2012-02-28 16:39:07 UTC (rev 20118)
+++ gnunet/src/dht/test_dht_twopeer.c 2012-02-28 17:06:27 UTC (rev 20119)
@@ -227,11 +227,7 @@
{
struct PeerGetContext *get_context = cls;
- if (get_context->get_attempts < MAX_GET_ATTEMPTS)
- GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
- "Get attempt %u failed, retrying request!\n",
- get_context->get_attempts);
- else
+ if (get_context->get_attempts >= MAX_GET_ATTEMPTS)
{
FPRINTF (stderr, "%s", "?\n");
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
@@ -243,11 +239,14 @@
"GET attempt failed, ending test!\n");
return;
}
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+ "Get attempt %u failed, retrying request!\n",
+ get_context->get_attempts);
FPRINTF (stderr, "%s", ".");
get_context->get_attempts++;
get_context->retry_task =
GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_relative_multiply
- (GNUNET_TIME_UNIT_SECONDS, 10),
+ (GNUNET_TIME_UNIT_SECONDS, 60),
&stop_retry_get, get_context);
get_context->get_handle =
GNUNET_DHT_get_start (get_context->dht_handle,
@@ -311,17 +310,15 @@
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"connected peer %s to peer %s, distance %u\n",
first_daemon->shortname, second_daemon->shortname, distance);
-#endif
}
-#if VERBOSE
else
{
failed_connections++;
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Failed to connect peer %s to peer %s with error :\n%s\n",
first_daemon->shortname, second_daemon->shortname, emsg);
- }
#endif
+ }
if (total_connections == expected_connections)
{
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r20119 - gnunet/src/dht,
gnunet <=