# How many connections can happen simultaneously?
MAX_OUTSTANDING_CONNECTIONS = 50
+# Should we clean up the files on peer group shutdown?
+DELETE_FILES = YES
+
[client]
HOME = $SERVICEHOME
* Closure for cb
*/
void *cb_cls;
+
+ /**
+ * Should we delete all of the files from the peers?
+ */
+ int delete_files;
};
/**
GNUNET_TESTING_daemon_stop (peer_shutdown_ctx->daemon,
shutdown_ctx->timeout,
&internal_shutdown_callback, peer_shutdown_ctx,
- GNUNET_YES, GNUNET_NO);
+ shutdown_ctx->delete_files, GNUNET_NO);
}
else
GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_MILLISECONDS,
GNUNET_assert (pg->total > 0);
shutdown_ctx = GNUNET_malloc (sizeof (struct ShutdownContext));
+ shutdown_ctx->delete_files = GNUNET_CONFIGURATION_get_value_yesno (pg->cfg,
+ "TESTING",
+ "DELETE_FILES");
shutdown_ctx->cb = cb;
shutdown_ctx->cb_cls = cb_cls;
shutdown_ctx->total_peers = pg->total;