diff options
author | Nathan S. Evans <evans@in.tum.de> | 2010-06-23 15:51:43 +0000 |
---|---|---|
committer | Nathan S. Evans <evans@in.tum.de> | 2010-06-23 15:51:43 +0000 |
commit | 5ae985135268e8fe5a731f877ad5ddb3c854a708 (patch) | |
tree | a13e997975b20200cb4c040d4d36c2d25aa1f609 /src/dht | |
parent | 4377ade158e5b6d0e60c3ad1eae2ae74d892d973 (diff) | |
download | gnunet-5ae985135268e8fe5a731f877ad5ddb3c854a708.tar.gz gnunet-5ae985135268e8fe5a731f877ad5ddb3c854a708.zip |
someone changed how services start and didn't tell the dht testcase
Diffstat (limited to 'src/dht')
-rw-r--r-- | src/dht/dht_api.c | 11 | ||||
-rw-r--r-- | src/dht/test_dht_api.c | 3 | ||||
-rw-r--r-- | src/dht/test_dht_api_peer1.conf | 65 |
3 files changed, 11 insertions, 68 deletions
diff --git a/src/dht/dht_api.c b/src/dht/dht_api.c index c188e171f..2d54eeb9c 100644 --- a/src/dht/dht_api.c +++ b/src/dht/dht_api.c | |||
@@ -315,6 +315,7 @@ static int retransmit_iterator (void *cls, | |||
315 | pending_message_list->message->unique_id = route_handle->uid; | 315 | pending_message_list->message->unique_id = route_handle->uid; |
316 | /* Add the new pending message to the front of the retransmission list */ | 316 | /* Add the new pending message to the front of the retransmission list */ |
317 | pending_message_list->next = route_handle->dht_handle->retransmissions; | 317 | pending_message_list->next = route_handle->dht_handle->retransmissions; |
318 | route_handle->dht_handle->retransmissions = pending_message_list; | ||
318 | 319 | ||
319 | return GNUNET_OK; | 320 | return GNUNET_OK; |
320 | } | 321 | } |
@@ -569,10 +570,12 @@ service_message_handler (void *cls, | |||
569 | "dht", | 570 | "dht", |
570 | handle->cfg); | 571 | handle->cfg); |
571 | 572 | ||
572 | handle->retransmit_stage = DHT_RETRANSMITTING; | 573 | if (GNUNET_CONTAINER_multihashmap_iterate(handle->outstanding_requests, &retransmit_iterator, handle) > 0) |
573 | GNUNET_CONTAINER_multihashmap_iterate(handle->outstanding_requests, &retransmit_iterator, handle); | 574 | { |
574 | handle->current = handle->retransmissions->message; | 575 | handle->retransmit_stage = DHT_RETRANSMITTING; |
575 | process_pending_retransmissions(handle); | 576 | handle->current = handle->retransmissions->message; |
577 | process_pending_retransmissions(handle); | ||
578 | } | ||
576 | return; | 579 | return; |
577 | } | 580 | } |
578 | 581 | ||
diff --git a/src/dht/test_dht_api.c b/src/dht/test_dht_api.c index 122dfff16..635001c94 100644 --- a/src/dht/test_dht_api.c +++ b/src/dht/test_dht_api.c | |||
@@ -149,7 +149,8 @@ end_badly () | |||
149 | #if VERBOSE | 149 | #if VERBOSE |
150 | fprintf (stderr, "Ending on an unhappy note.\n"); | 150 | fprintf (stderr, "Ending on an unhappy note.\n"); |
151 | #endif | 151 | #endif |
152 | if (retry_context.peer_ctx->find_peer_handle != NULL) | 152 | |
153 | if ((retry_context.peer_ctx != NULL) && (retry_context.peer_ctx->find_peer_handle != NULL)) | ||
153 | GNUNET_DHT_find_peer_stop(retry_context.peer_ctx->find_peer_handle, NULL, NULL); | 154 | GNUNET_DHT_find_peer_stop(retry_context.peer_ctx->find_peer_handle, NULL, NULL); |
154 | if (retry_context.retry_task != GNUNET_SCHEDULER_NO_TASK) | 155 | if (retry_context.retry_task != GNUNET_SCHEDULER_NO_TASK) |
155 | GNUNET_SCHEDULER_cancel(sched, retry_context.retry_task); | 156 | GNUNET_SCHEDULER_cancel(sched, retry_context.retry_task); |
diff --git a/src/dht/test_dht_api_peer1.conf b/src/dht/test_dht_api_peer1.conf index 33ca838f3..c02567efd 100644 --- a/src/dht/test_dht_api_peer1.conf +++ b/src/dht/test_dht_api_peer1.conf | |||
@@ -8,23 +8,9 @@ HOSTNAME = localhost | |||
8 | PORT = 2094 | 8 | PORT = 2094 |
9 | INDEXDB = $SERVICEHOME/idxinfo.lst | 9 | INDEXDB = $SERVICEHOME/idxinfo.lst |
10 | 10 | ||
11 | [datastore-sqlite] | ||
12 | FILENAME = $SERVICEHOME/datastore/sqlite.db | ||
13 | |||
14 | [datastore] | ||
15 | DATABASE = sqlite | ||
16 | BLOOMFILTER = $SERVICEHOME/fs/bloomfilter | ||
17 | QUOTA = 100000000 | ||
18 | ACCEPT_FROM6 = ::1; | ||
19 | ACCEPT_FROM = 127.0.0.1; | ||
20 | BINARY = gnunet-service-datastore | ||
21 | CONFIG = $DEFAULTCONFIG | ||
22 | HOME = $SERVICEHOME | ||
23 | HOSTNAME = localhost | ||
24 | PORT = 2093 | ||
25 | |||
26 | [dht] | 11 | [dht] |
27 | DEBUG = NO | 12 | DEBUG = NO |
13 | AUTOSTART = YES | ||
28 | ACCEPT_FROM6 = ::1; | 14 | ACCEPT_FROM6 = ::1; |
29 | ACCEPT_FROM = 127.0.0.1; | 15 | ACCEPT_FROM = 127.0.0.1; |
30 | BINARY = gnunet-service-dht | 16 | BINARY = gnunet-service-dht |
@@ -40,25 +26,6 @@ PORT = 2100 | |||
40 | QUOTA = 1000000 | 26 | QUOTA = 1000000 |
41 | DATABASE = sqlite | 27 | DATABASE = sqlite |
42 | 28 | ||
43 | [hostlist] | ||
44 | HTTP-PROXY = | ||
45 | SERVERS = http://gnunet.org:8080/ | ||
46 | OPTIONS = -b | ||
47 | BINARY = gnunet-daemon-hostlist | ||
48 | CONFIG = $DEFAULTCONFIG | ||
49 | HOME = $SERVICEHOME | ||
50 | HOSTNAME = localhost | ||
51 | HTTPPORT = 8080 | ||
52 | |||
53 | [topology] | ||
54 | BINARY = gnunet-daemon-topology | ||
55 | CONFIG = $DEFAULTCONFIG | ||
56 | FRIENDS = $SERVICEHOME/friends | ||
57 | TARGET-CONNECTION-COUNT = 16 | ||
58 | AUTOCONNECT = YES | ||
59 | FRIENDS-ONLY = NO | ||
60 | MINIMUM-FRIENDS = 0 | ||
61 | |||
62 | [transport] | 29 | [transport] |
63 | PLUGINS = tcp | 30 | PLUGINS = tcp |
64 | DEBUG = NO | 31 | DEBUG = NO |
@@ -73,35 +40,6 @@ HOME = $SERVICEHOME | |||
73 | HOSTNAME = localhost | 40 | HOSTNAME = localhost |
74 | PORT = 12365 | 41 | PORT = 12365 |
75 | 42 | ||
76 | [peerinfo] | ||
77 | TRUST = $SERVICEHOME/data/credit/ | ||
78 | HOSTS = $SERVICEHOME/data/hosts/ | ||
79 | ACCEPT_FROM6 = ::1; | ||
80 | ACCEPT_FROM = 127.0.0.1; | ||
81 | BINARY = gnunet-service-peerinfo | ||
82 | CONFIG = $DEFAULTCONFIG | ||
83 | HOME = $SERVICEHOME | ||
84 | HOSTNAME = localhost | ||
85 | PORT = 12369 | ||
86 | |||
87 | [resolver] | ||
88 | ACCEPT_FROM6 = ::1; | ||
89 | ACCEPT_FROM = 127.0.0.1; | ||
90 | BINARY = gnunet-service-resolver | ||
91 | CONFIG = $DEFAULTCONFIG | ||
92 | HOME = $SERVICEHOME | ||
93 | HOSTNAME = localhost | ||
94 | PORT = 12364 | ||
95 | |||
96 | [statistics] | ||
97 | ACCEPT_FROM6 = ::1; | ||
98 | ACCEPT_FROM = 127.0.0.1; | ||
99 | BINARY = gnunet-service-statistics | ||
100 | CONFIG = $DEFAULTCONFIG | ||
101 | HOME = $SERVICEHOME | ||
102 | HOSTNAME = localhost | ||
103 | PORT = 12367 | ||
104 | |||
105 | [core] | 43 | [core] |
106 | TOTAL_QUOTA_OUT = 3932160 | 44 | TOTAL_QUOTA_OUT = 3932160 |
107 | TOTAL_QUOTA_IN = 3932160 | 45 | TOTAL_QUOTA_IN = 3932160 |
@@ -122,6 +60,7 @@ CONFIG = $DEFAULTCONFIG | |||
122 | HOME = $SERVICEHOME | 60 | HOME = $SERVICEHOME |
123 | HOSTNAME = localhost | 61 | HOSTNAME = localhost |
124 | PORT = 12366 | 62 | PORT = 12366 |
63 | DEBUG = YES | ||
125 | 64 | ||
126 | [transport-tcp] | 65 | [transport-tcp] |
127 | TIMEOUT = 300000 | 66 | TIMEOUT = 300000 |