diff options
author | Nathan S. Evans <evans@in.tum.de> | 2010-11-17 15:05:15 +0000 |
---|---|---|
committer | Nathan S. Evans <evans@in.tum.de> | 2010-11-17 15:05:15 +0000 |
commit | bc065008eae3b1254dee33a6211aca4fe944410a (patch) | |
tree | 0b9ecab06d42078b276208a572998e72a6d8d0f8 /src/dht/gnunet-service-dht.c | |
parent | 2bca0645ec82a82749be2d97f27d10ca828760e1 (diff) | |
download | gnunet-bc065008eae3b1254dee33a6211aca4fe944410a.tar.gz gnunet-bc065008eae3b1254dee33a6211aca4fe944410a.zip |
report failed connection attempts in driver, use a queue bigger than 1 in core
Diffstat (limited to 'src/dht/gnunet-service-dht.c')
-rw-r--r-- | src/dht/gnunet-service-dht.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/dht/gnunet-service-dht.c b/src/dht/gnunet-service-dht.c index 7e6c20559..2e27ba55b 100644 --- a/src/dht/gnunet-service-dht.c +++ b/src/dht/gnunet-service-dht.c | |||
@@ -71,6 +71,8 @@ | |||
71 | */ | 71 | */ |
72 | #define DEFAULT_BUCKET_SIZE 4 | 72 | #define DEFAULT_BUCKET_SIZE 4 |
73 | 73 | ||
74 | #define DEFAULT_CORE_QUEUE_SIZE 32 | ||
75 | |||
74 | /** | 76 | /** |
75 | * Minimum number of peers we need for "good" routing, | 77 | * Minimum number of peers we need for "good" routing, |
76 | * any less than this and we will allow messages to | 78 | * any less than this and we will allow messages to |
@@ -95,7 +97,7 @@ | |||
95 | /** | 97 | /** |
96 | * How long to keep recent requests around by default. | 98 | * How long to keep recent requests around by default. |
97 | */ | 99 | */ |
98 | #define DEFAULT_RECENT_REMOVAL GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_SECONDS, 30) | 100 | #define DEFAULT_RECENT_REMOVAL GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 15) |
99 | 101 | ||
100 | /** | 102 | /** |
101 | * Default time to wait to send find peer messages sent by the dht service. | 103 | * Default time to wait to send find peer messages sent by the dht service. |
@@ -4553,7 +4555,7 @@ run (void *cls, | |||
4553 | GNUNET_SERVER_add_handlers (server, plugin_handlers); | 4555 | GNUNET_SERVER_add_handlers (server, plugin_handlers); |
4554 | GNUNET_SERVER_disconnect_notify (server, &handle_client_disconnect, NULL); | 4556 | GNUNET_SERVER_disconnect_notify (server, &handle_client_disconnect, NULL); |
4555 | coreAPI = GNUNET_CORE_connect (cfg, /* Main configuration */ | 4557 | coreAPI = GNUNET_CORE_connect (cfg, /* Main configuration */ |
4556 | 1, /* queue size */ | 4558 | DEFAULT_CORE_QUEUE_SIZE, /* queue size */ |
4557 | NULL, /* Closure passed to DHT functions */ | 4559 | NULL, /* Closure passed to DHT functions */ |
4558 | &core_init, /* Call core_init once connected */ | 4560 | &core_init, /* Call core_init once connected */ |
4559 | &handle_core_connect, /* Handle connects */ | 4561 | &handle_core_connect, /* Handle connects */ |