(n->status != PEER_STATE_KEY_CONFIRMED))
{
GNUNET_break_op (0);
+ /* blacklist briefly (?); might help recover (?) */
+ GNUNET_TRANSPORT_blacklist (sched, cfg,
+ &n->peer,
+ GNUNET_TIME_UNIT_SECONDS,
+ GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_MILLISECONDS,
+ 5),
+ NULL, NULL);
return;
}
handle_encrypted_message (n, (const struct EncryptedMessage *) message);
ok++;
sched = s;
timeout_task = GNUNET_SCHEDULER_add_delayed (sched,
- GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS,
- 15),
+ TIMEOUT,
&timeout_error,
NULL);
GNUNET_SCHEDULER_add_delayed (sched,
#include "gnunet_statistics_service.h"
#include "statistics.h"
-#define GET_TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 15)
+#define GET_TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 1)
/**
* Final status code.
struct GNUNET_STATISTICS_Handle *h = cls;
if (success != GNUNET_OK)
- ret = 1;
+ {
+ fprintf (stderr,
+ _("Failed to obtain statistics.\n"));
+ ret = 1;
+ }
if (h != NULL)
GNUNET_STATISTICS_destroy (h,
GNUNET_NO);
#endif
cc = GNUNET_CLIENT_connect (d->sched, "arm", d->cfg);
GNUNET_CLIENT_service_shutdown (cc);
+ /* FIXME: replace shutdown sequence via client with
+ shutdown via signal and waitpid; then we don't need
+ to sleep here any longer... */
+ sleep (1);
/* state clean up and notifications */
if (0 != UNLINK (d->cfgfile))