From 72dc0570dba131aae4990b4a3fd29559295637ab Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 18 Jul 2011 07:15:15 +0000 Subject: defaults belong in defaults.conf, not in source --- src/transport/plugin_transport_http.c | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) (limited to 'src') diff --git a/src/transport/plugin_transport_http.c b/src/transport/plugin_transport_http.c index 8722390ef..f85af6293 100644 --- a/src/transport/plugin_transport_http.c +++ b/src/transport/plugin_transport_http.c @@ -3348,17 +3348,12 @@ LIBGNUNET_PLUGIN_TRANSPORT_INIT (void *cls) &plugin->my_ascii_hash_ident); - if (GNUNET_CONFIGURATION_have_value (env->cfg, "TRANSPORT", "NEIGHBOUR_LIMIT")) - { - GNUNET_CONFIGURATION_get_value_number (env->cfg, - "TRANSPORT", - "NEIGHBOUR_LIMIT", - &tneigh); - } - else - { - tneigh = -1; - } + if (GNUNET_OK != + GNUNET_CONFIGURATION_get_value_number (env->cfg, + component_name, + "MAX_CONNECTIONS", + &tneigh)) + tneigh = 128; plugin->max_connect_per_transport = tneigh; -- cgit v1.2.3