8348bd77eb6fdef7d3b7d8c231bc7d1724817c09
[oweals/gnunet.git] / TODO
1 PHASE #1: (Goal: settle key design questions)
2
3 ARM:
4 * Make sure ARM supports daemons (non-service background processes, see hostlist/topology)
5
6 Util:
7 * improve disk API [Nils]
8 * Windows: use events instead of pipes to signal select()s [Nils]
9 * only connect() sockets that are ready (select())
10   [Nils: I'm not sure what you mean by this; fresh sockets are always
11    ready for connect(), just 'write' after connect needs select AFAIK;
12    please clarify. --Christian]
13
14 TESTCASES WANTED:
15 For these functions, it would be nice if we had testcases ("make check")
16 that would cause them to be executed and check that they are working:
17 * gnunet-service-peerinfo:
18   - change_host_trust / flush_trust 
19   - remove_garbage / 
20   - discard_hosts_helper / cron_clean_data_hosts
21 * gnunet-service-transport:
22   - try_unvalidated_addresses
23   - lookup_address_callback
24   - lookup_hello_callback
25   - plugin_env_lookup_address
26   - notify_clients_disconnect
27   - list_validated_addresses
28   - cleanup_validation
29   - disconnect_neighbour
30   - handle_set_quota
31 * plugin_transport_tcp.c:
32   - tcp_plugin_cancel
33   - tcp_plugin_address_pretty_printer / append_port
34   - tcp_plugin_set_receive_quota
35   - delayed_done
36 * transport_api:
37   - GNUNET_TRANSPORT_set_qutoa / send_set_quota
38   - hello_wait_timeout 
39   - transmit_ready
40   - transmit_timeout
41   - remove_from_any_list / remove_neighbour
42   - GNUNET_TRANSPORT_notify_transmit_ready_cancel
43 * core_api:
44   - timeout_request
45   - solicit_traffic / copy_and_free
46   - GNUNET_CORE_peer_configure / produce_configure_message
47 * gnunet-service-core:
48   - update_window
49   - find_client
50   - handle_client_request_configure
51   - set_key_retry_task
52   - align_and_deliver
53   - handle_transport_notify_disconnect
54 * hostlist (everything)
55 * topology (everything)
56
57
58
59 PHASE #2: (Goal: recover basic file-sharing functionality)
60
61 Datastores:
62 * implement sqlite-based sqstore/datastore service
63   + implement library (talks to service)
64   + implement service (datastore + talks to plugin)
65   + implement sqlite plugin (talks to DB)
66 * implement sqlite-based dstore services
67   + implement library (talks to service)
68   + implement service (talks to plugin)
69   + implement sqlite plugin (talks to DB)
70
71 Applications:
72 * implement hostlist service (need to bootstrap!)
73 * DHT, DV
74 * FS / fs-libs
75
76 Databases:
77 * have ONE backend working
78
79
80 PHASE #3: (Goal: ready for pre-release) [completion-goal: end of 2009]
81
82 * testing
83 * setup
84 * gtk, qt GUIs
85 * tbench
86 * tracekit
87 * vpn
88
89 Transports:
90 * UDP backend (need LIBRARY to support (de)fragmentation!)
91 * HTTP backend
92 * Testing:
93   +  Testcases for set_quota, timeouts, disconnects, transmit_ready_cancel
94   + Better coverage of gnunet-service-transport (hello validation)
95   + direct test of plugins compliance to plugin API
96
97 Databases:
98 * sqlite, mysql & postgres backend
99
100
101
102 Minor TODO items:
103 * UTIL:
104   - crypto_hash: use libgcrypt (supports SHA-512 since 2003)
105   - container_bloomfilter: improve efficiency (see FIXME)
106 * SERVER:
107   - inefficient memmove
108 * TRANSPORT:
109   - transport_api: support forcing disconnects through low quotas!
110     (required for working F2F support!)
111   - API: consider having core provide deadline information for each message
112     (likely important for DV plugin which wants to loop back!)
113   - implement transport API to pretty-print transport address 
114     + transport_api extension (API extension!)
115     + service-transport extension (protocol extension)
116   - add calls to statistics in various places
117   - implement gnunet-transport (transport configurator / tester)
118   - UPnP-based IP detection
119     (Note: build library always, build service when libxml2/etc. are available)
120   - instantly filter addresses from *other* peers that 
121     are *equal* to our own address + port (i.e., localhost:2086).  We 
122     no longer filter those for outgoing (helps with loopback testing
123     and keeps the code clean), but we should filter strictly *impossible*
124     incoming addresses!  This is for efficiency, not correctness.
125   - We currently are happy to take any address told to us in a WELCOME
126     to our set of addresses; we should have some minimal threshold-based
127     scheme, limiting both the total number of addresses that we accept 
128     this way as well as requiring multiple confirmations; also, we
129     should possibly try to confirm that the given address works for
130     us ourselves (loopback-style) before adding it to the list
131     [SECURITY issue]
132   - not sure current way of doing ACKs works well-enough 
133     with unreliable transports where the ACK maybe lost;
134     the "is_new" check would then possibly prevent future
135     ACKs to be delivered, all while we're happily 
136     receiving messages from that peer!  Worse, the other
137     peer won't generate another ACK since it thinks we're
138     connected just fine...
139     Key questions:
140     + How necessary is ACKing in the first place? (alternatives?)
141     + Should we transmit ACKs in response to every HELLO? (would that 
142       fully address the problem?)
143   - latency measurements implemented in the transport
144     plugins makes it only work for bi-di transports
145     and results in code replication
146   - should latency be included in the ReceiveCallback and
147     NotifyConnect or passed on request?
148 * SETUP:
149   - auto-generate "defaults.conf" using gnunet-setup from "config.scm"
150   - integrate all options into "config.scm"
151   - change config-file writing to exclude options set to default values
152 * ARM:
153   - implement exponential back-off for service restarts
154   - better tracking of which config changes actually need to cause process restarts by ARM.
155   - have way to specify dependencies between services (to manage ARM restarts better)
156 * PEERINFO:
157   - have gnunet-peerinfo print actual host addresses again
158   - add option to gnunet-peerinfo to modify trust value
159 * POSTGRES-DB:
160   - finish postgres implementation; simplify other SQLs using new stats
161 * HTTPS transport
162   - PolariSSL for MHD?
163   - https integration
164 * GAP improvements:
165   - active reply route caching design & implementation of service,
166     gap extension!
167 * HOSTLIST:
168   - implement advertising of hostlist URL
169   - implement learning of hostlist URLs
170
171
172
173 => PRE-RELEASE
174
175 PHASE #4: [completion-goal: mid 2010]
176 * Documentation
177 * new webpage
178
179
180
181
182 Stuff to remember:
183 * Features eliminated from util:
184   - threading (goal: good riddance!)
185   - complex logging features [ectx-passing, target-kinds] (goal: good riddance!)
186   - complex configuration features [defaults, notifications] (goal: good riddance!)
187   - network traffic monitors (goal: eliminate)
188   - IPC semaphores (goal: d-bus? / eliminate?)
189   - second timers
190   - DNS lookup (goal: have async service; issue: still need synchronous resolution in places, current code may not be portable)
191   => code shrunk from 61 files to 34, 22k LOC to 15k LOC, 470k to 330k (with symbols)
192 * New features in util:
193   - scheduler
194   - service and program boot-strap code
195 * Major changes in util:
196   - more expressive server (replaces selector)
197 * Open questions: 
198   - how to integrate scheduler with GTK event loop!
199
200
201
202 Test coverage:
203 * UTIL: 75%, 4914 out of 6463