aboutsummaryrefslogtreecommitdiff
path: root/src/testbed/testbed_api.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testbed/testbed_api.c')
-rw-r--r--src/testbed/testbed_api.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/testbed/testbed_api.c b/src/testbed/testbed_api.c
index 42167a5cb..1a779c3c1 100644
--- a/src/testbed/testbed_api.c
+++ b/src/testbed/testbed_api.c
@@ -1160,6 +1160,7 @@ GNUNET_TESTBED_controller_connect (const struct GNUNET_CONFIGURATION_Handle *cfg
1160 struct GNUNET_TESTBED_InitMessage *msg; 1160 struct GNUNET_TESTBED_InitMessage *msg;
1161 const char *controller_hostname; 1161 const char *controller_hostname;
1162 unsigned long long max_parallel_operations; 1162 unsigned long long max_parallel_operations;
1163 unsigned long long max_parallel_service_connections;
1163 1164
1164 if (GNUNET_OK != 1165 if (GNUNET_OK !=
1165 GNUNET_CONFIGURATION_get_value_number (cfg, "testbed", 1166 GNUNET_CONFIGURATION_get_value_number (cfg, "testbed",
@@ -1169,6 +1170,14 @@ GNUNET_TESTBED_controller_connect (const struct GNUNET_CONFIGURATION_Handle *cfg
1169 GNUNET_break (0); 1170 GNUNET_break (0);
1170 return NULL; 1171 return NULL;
1171 } 1172 }
1173 if (GNUNET_OK !=
1174 GNUNET_CONFIGURATION_get_value_number (cfg, "testbed",
1175 "MAX_PARALLEL_SERVICE_CONNECTIONS",
1176 &max_parallel_service_connections))
1177 {
1178 GNUNET_break (0);
1179 return NULL;
1180 }
1172 controller = GNUNET_malloc (sizeof (struct GNUNET_TESTBED_Controller)); 1181 controller = GNUNET_malloc (sizeof (struct GNUNET_TESTBED_Controller));
1173 controller->cc = cc; 1182 controller->cc = cc;
1174 controller->cc_cls = cc_cls; 1183 controller->cc_cls = cc_cls;
@@ -1201,6 +1210,9 @@ GNUNET_TESTBED_controller_connect (const struct GNUNET_CONFIGURATION_Handle *cfg
1201 controller->opq_parallel_operations = 1210 controller->opq_parallel_operations =
1202 GNUNET_TESTBED_operation_queue_create_ ((unsigned int) 1211 GNUNET_TESTBED_operation_queue_create_ ((unsigned int)
1203 max_parallel_operations); 1212 max_parallel_operations);
1213 controller->opq_parallel_service_connections =
1214 GNUNET_TESTBED_operation_queue_create_ ((unsigned int)
1215 max_parallel_service_connections);
1204 controller_hostname = GNUNET_TESTBED_host_get_hostname_ (host); 1216 controller_hostname = GNUNET_TESTBED_host_get_hostname_ (host);
1205 if (NULL == controller_hostname) 1217 if (NULL == controller_hostname)
1206 controller_hostname = "127.0.0.1"; 1218 controller_hostname = "127.0.0.1";