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)
{
#endif
ctx->d1core = GNUNET_CORE_connect (d1->cfg, 1,
-#if NO_MORE_TIMEOUT_FIXME
- timeout,
-#endif
ctx,
NULL,
&connect_notify, NULL, NULL,
GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_relative_divide
(ctx->relative_timeout,
ctx->max_connect_attempts),
- ¬ify_connect_result, ctx);
+ ¬ify_connect_result, ctx);
ctx->hello_send_task = GNUNET_SCHEDULER_add_now (&send_hello, ctx);
}
#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