Fix for blacklist testcase; more aggressive reconnect attempts.
authorNathan S. Evans <evans@in.tum.de>
Tue, 16 Nov 2010 15:39:39 +0000 (15:39 +0000)
committerNathan S. Evans <evans@in.tum.de>
Tue, 16 Nov 2010 15:39:39 +0000 (15:39 +0000)
src/testing/test_testing_topology_blacklist.c
src/testing/testing.c
src/testing/testing_group.c

index 1123c2f39460cd396d3158ee455612abcb4afe35..aa4a9cac7d981330240b64ab55881748a3bccbe4 100644 (file)
@@ -190,15 +190,17 @@ topology_callback (void *cls,
         fprintf (dotOutFile, "\tn%s -- n%s;\n", first_daemon->shortname,
                  second_daemon->shortname);
     }
-#if VERBOSE
+
   else
     {
       failed_connections++;
+#if VERBOSE
       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)
     {
index 3d1a74e0e1858aee04b0becc0e7c8591d7a3ec5a..c5ff0eb7bd0fe705231fba10666df7aee81dcfa1 100644 (file)
@@ -1595,9 +1595,6 @@ GNUNET_TESTING_daemons_connect (struct GNUNET_TESTING_Daemon *d1,
 #endif
 
   ctx->d1core = GNUNET_CORE_connect (d1->cfg, 1,
-#if NO_MORE_TIMEOUT_FIXME
-                                     timeout,
-#endif
                                      ctx,
                                      NULL,
                                      &connect_notify, NULL, NULL,
@@ -1657,7 +1654,7 @@ GNUNET_TESTING_daemons_connect (struct GNUNET_TESTING_Daemon *d1,
     GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_relative_divide
                                   (ctx->relative_timeout,
                                    ctx->max_connect_attempts),
-                                  &notify_connect_result, ctx);
+                                   &notify_connect_result, ctx);
 
   ctx->hello_send_task = GNUNET_SCHEDULER_add_now (&send_hello, ctx);
 }
index e74d5b9ef2c8b30fd8c32d013e7167bfa97b6a18..a0771ae50bf25a4c0981f17f141e3fa8ec8d2c74 100644 (file)
@@ -59,9 +59,9 @@
 
 #define MAX_CONCURRENT_SHUTDOWN 10
 
-#define CONNECT_TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 300)
+#define CONNECT_TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 200)
 
-#define CONNECT_ATTEMPTS 8
+#define CONNECT_ATTEMPTS 21
 
 /**
  * Prototype of a function called whenever two peers would be connected