cleanup
authorChristian Grothoff <christian@grothoff.org>
Fri, 5 Feb 2010 15:48:14 +0000 (15:48 +0000)
committerChristian Grothoff <christian@grothoff.org>
Fri, 5 Feb 2010 15:48:14 +0000 (15:48 +0000)
BUGS
contrib/defaults.conf
src/transport/gnunet-nat-client.c
src/transport/gnunet-service-transport.c

diff --git a/BUGS b/BUGS
index 1d9398c9b2ad2a582f3f36bc3abd1be51952ca32..5c1991751f1be9f654f3c38340fbdea3ad66a786 100644 (file)
--- a/BUGS
+++ b/BUGS
@@ -84,9 +84,12 @@ sane end-user should care about this codebase yet anyway.
   - integrate all options into "config.scm"
   - change config-file writing to exclude options set to default values
 * ARM:
-  - implement exponential back-off for service restarts
   - better tracking of which config changes actually need to cause process restarts by ARM.
-  - have way to specify dependencies between services (to manage ARM restarts better)
+  - listen for requests to discover dependencies between services (and avoid
+    having to explicitly program start requests)
+  - better crash management (attach debugging support, capture and analyze
+    debug output, detect random vs. deterministic crashes)
+  - shutdown sequence?
 * CORE: 
   - test case (test_core_api) hangs for a while (some timeout task not killed somewhere?)
   - [./core/gnunet-service-core.c:469]: (style) struct or union member 'Neighbour::message_queue_size' is never used
index 6f773bc1117fe0c294f4ac37e00cb3b2fcf00db5..65c286c256085328d87b9ed1dc75764dbb88bef9 100644 (file)
@@ -31,7 +31,7 @@ BINARY = gnunet-service-arm
 ACCEPT_FROM = 127.0.0.1;
 ACCEPT_FROM6 = ::1;
 ALLOW_SHUTDOWN = YES
-DEFAULTSERVICES = resolver transport core
+DEFAULTSERVICES = resolver transport core 
 # GLOBAL_PREFIX =
 # USERNAME =
 # MAXBUF =
@@ -118,7 +118,6 @@ ALLOW_SHUTDOWN = YES
 # REJECT_FROM6 =
 # PREFIX =
 
-
 [core]
 PORT = 2092
 HOSTNAME = localhost
@@ -150,7 +149,6 @@ FRIENDS = $SERVICEHOME/friends
 CONFIG = $DEFAULTCONFIG
 BINARY = gnunet-daemon-topology
 
-
 [hostlist]
 # port for hostlist http server
 HTTPPORT = 8080
index 3bf409461057ee639c1561be5c50b17514b68005..0fce09e7150ba9440ba7a8507b7c662345dba5a2 100644 (file)
 #include <netinet/ip_icmp.h>
 #include <netinet/in.h> 
 
-#define DEBUG 0
+#define DEBUG 1
 
 /**
  * Number of UDP ports to keep open (typically >= 256)
  */
-#define NUM_UDP_PORTS 256
+#define NUM_UDP_PORTS  1024
 
 /**
  * Number of ICMP replies to send per message received (typically >= 1024)
  */
-#define NUM_ICMP_REPLIES 1024
+#define NUM_ICMP_REPLIES 10240
 
 /**
  * How often do we send our UDP messages to keep ports open? (typically < 100ms)
  */
-#define UDP_SEND_FREQUENCY_MS 50
+#define UDP_SEND_FREQUENCY_MS 10
 
 /**
  * Port we use for the dummy target.
  */
-#define NAT_TRAV_PORT 2222
+#define NAT_TRAV_PORT 22223
 
 /**
  * How often do we retry to open and bind a UDP socket before giving up?
index 84158584f2194089781098c4433308e69042d546..6a8b2db5e975eb8be15b9ea86fe27310093910da 100644 (file)
@@ -1136,7 +1136,6 @@ find_ready_address(struct NeighborList *neighbor)
   struct ReadyList *head = neighbor->plugins;
   struct PeerAddressList *addresses;
   struct GNUNET_TIME_Absolute now = GNUNET_TIME_absolute_get ();
-  struct GNUNET_TIME_Relative min_latency = GNUNET_TIME_relative_get_forever();
   struct PeerAddressList *best_address;
 
   best_address = NULL;
@@ -1168,7 +1167,7 @@ find_ready_address(struct NeighborList *neighbor)
 #if DEBUG_TRANSPORT
               GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
                           "Found address with latency %llu (previous best was %llu), setting as best found yet!\n",
-                          addresses->latency.value, best_address == NULL ? min_latency.value : best_address->latency.value);
+                          addresses->latency.value, best_address == NULL ? -1LL : best_address->latency.value);
 #endif
               best_address = addresses;
             }