/**
* Default timeout for operations which may take some time
*/
-#define TIMEOUT GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_SECONDS, 30)
+#define TIMEOUT GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_SECONDS, 60)
/**
* The main context information associated with the client which started us
static void
slave_list_add (struct Slave *slave)
{
+ uint32_t orig_size;
+
+ orig_size = slave_list_size;
if (slave->host_id >= slave_list_size)
{
+ while (slave->host_id >= slave_list_size)
+ slave_list_size += LIST_GROW_STEP;
slave_list =
- TESTBED_realloc (slave_list, sizeof (struct Slave *) * slave_list_size,
- sizeof (struct Slave *) * (slave_list_size +
- LIST_GROW_STEP));
- slave_list_size += LIST_GROW_STEP;
+ TESTBED_realloc (slave_list, sizeof (struct Slave *) * orig_size,
+ sizeof (struct Slave *) * slave_list_size);
}
GNUNET_assert (NULL == slave_list[slave->host_id]);
slave_list[slave->host_id] = slave;
GNUNET_SERVER_receive_done (client, GNUNET_OK);
return;
}
+ if (GNUNET_YES == peer->details.local.is_running)
+ {
+ GNUNET_TESTING_peer_stop (peer->details.local.peer);
+ peer->details.local.is_running = GNUNET_NO;
+ }
GNUNET_TESTING_peer_destroy (peer->details.local.peer);
GNUNET_CONFIGURATION_destroy (peer->details.local.cfg);
peer_list_remove (peer);
struct Route *route_to_peer1_host;
LOG_DEBUG ("Forwarding overlay connect\n");
- GNUNET_SERVER_client_keep (client);
route_to_peer2_host = NULL;
route_to_peer1_host = NULL;
route_to_peer2_host = find_dest_route (peer2_host_id);
}
}
fopc = GNUNET_malloc (sizeof (struct ForwardedOperationContext));
+ GNUNET_SERVER_client_keep (client);
fopc->client = client;
fopc->operation_id = operation_id;
fopc->opc =