aboutsummaryrefslogtreecommitdiff
path: root/src/dht/gnunet-service-dht.c
diff options
context:
space:
mode:
authorNathan S. Evans <evans@in.tum.de>2010-09-03 15:30:05 +0000
committerNathan S. Evans <evans@in.tum.de>2010-09-03 15:30:05 +0000
commit8b39eac718f4e1268a3608b6b8a2df5c1c2a6ef8 (patch)
treeb57bad51f4f3dfbfd3b7db3e1ca1609019113771 /src/dht/gnunet-service-dht.c
parent2e0b0c8b13496bde84f42a45c8dc72ed78a86971 (diff)
downloadgnunet-8b39eac718f4e1268a3608b6b8a2df5c1c2a6ef8.tar.gz
gnunet-8b39eac718f4e1268a3608b6b8a2df5c1c2a6ef8.zip
core request connect in addition to hello, minor driver stuff
Diffstat (limited to 'src/dht/gnunet-service-dht.c')
-rw-r--r--src/dht/gnunet-service-dht.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/dht/gnunet-service-dht.c b/src/dht/gnunet-service-dht.c
index eb8a53ff4..38797127c 100644
--- a/src/dht/gnunet-service-dht.c
+++ b/src/dht/gnunet-service-dht.c
@@ -67,7 +67,7 @@
67 */ 67 */
68#define MINIMUM_PEER_THRESHOLD 20 68#define MINIMUM_PEER_THRESHOLD 20
69 69
70#define DHT_MAX_RECENT 100 70#define DHT_MAX_RECENT 1000
71 71
72#define FIND_PEER_CALC_INTERVAL GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 60) 72#define FIND_PEER_CALC_INTERVAL GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 60)
73 73
@@ -82,9 +82,9 @@
82#define DHT_DEFAULT_P2P_IMPORTANCE 0 82#define DHT_DEFAULT_P2P_IMPORTANCE 0
83 83
84/** 84/**
85 * How long to keep recent requests arounds by default. 85 * How long to keep recent requests around by default.
86 */ 86 */
87#define DEFAULT_RECENT_REMOVAL GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_SECONDS, 60) 87#define DEFAULT_RECENT_REMOVAL GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_SECONDS, 30)
88 88
89/** 89/**
90 * Default time to wait to send find peer messages sent by the dht service. 90 * Default time to wait to send find peer messages sent by the dht service.
@@ -1874,7 +1874,7 @@ static int route_result_message(void *cls,
1874 { 1874 {
1875 increment_stats(STAT_HELLOS_PROVIDED); 1875 increment_stats(STAT_HELLOS_PROVIDED);
1876 GNUNET_TRANSPORT_offer_hello(transport_handle, hello_msg); 1876 GNUNET_TRANSPORT_offer_hello(transport_handle, hello_msg);
1877 /* GNUNET_CORE_peer_request_connect(sched, cfg, GNUNET_TIME_UNIT_FOREVER_REL, &new_peer, NULL, NULL); */ 1877 GNUNET_CORE_peer_request_connect(sched, cfg, GNUNET_TIME_UNIT_FOREVER_REL, &new_peer, NULL, NULL);
1878 /* peer_request_connect call causes service to segfault */ 1878 /* peer_request_connect call causes service to segfault */
1879 /* FIXME: Do we need this (peer_request_connect call)??? */ 1879 /* FIXME: Do we need this (peer_request_connect call)??? */
1880 } 1880 }