diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-07-18 07:15:15 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-07-18 07:15:15 +0000 |
commit | 72dc0570dba131aae4990b4a3fd29559295637ab (patch) | |
tree | 76bcc862ab90294d17399474b1c54e6af3538840 /src/transport/plugin_transport_http.c | |
parent | 6793e33c9451f1e6c74f09a4364fe9f9dc123784 (diff) | |
download | gnunet-72dc0570dba131aae4990b4a3fd29559295637ab.tar.gz gnunet-72dc0570dba131aae4990b4a3fd29559295637ab.zip |
defaults belong in defaults.conf, not in source
Diffstat (limited to 'src/transport/plugin_transport_http.c')
-rw-r--r-- | src/transport/plugin_transport_http.c | 17 |
1 files changed, 6 insertions, 11 deletions
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) | |||
3348 | &plugin->my_ascii_hash_ident); | 3348 | &plugin->my_ascii_hash_ident); |
3349 | 3349 | ||
3350 | 3350 | ||
3351 | if (GNUNET_CONFIGURATION_have_value (env->cfg, "TRANSPORT", "NEIGHBOUR_LIMIT")) | 3351 | if (GNUNET_OK != |
3352 | { | 3352 | GNUNET_CONFIGURATION_get_value_number (env->cfg, |
3353 | GNUNET_CONFIGURATION_get_value_number (env->cfg, | 3353 | component_name, |
3354 | "TRANSPORT", | 3354 | "MAX_CONNECTIONS", |
3355 | "NEIGHBOUR_LIMIT", | 3355 | &tneigh)) |
3356 | &tneigh); | 3356 | tneigh = 128; |
3357 | } | ||
3358 | else | ||
3359 | { | ||
3360 | tneigh = -1; | ||
3361 | } | ||
3362 | plugin->max_connect_per_transport = tneigh; | 3357 | plugin->max_connect_per_transport = tneigh; |
3363 | 3358 | ||
3364 | 3359 | ||