aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--BUGS7
-rw-r--r--contrib/defaults.conf4
-rw-r--r--src/transport/gnunet-nat-client.c10
-rw-r--r--src/transport/gnunet-service-transport.c3
4 files changed, 12 insertions, 12 deletions
diff --git a/BUGS b/BUGS
index 1d9398c9b..5c1991751 100644
--- a/BUGS
+++ b/BUGS
@@ -84,9 +84,12 @@ sane end-user should care about this codebase yet anyway.
84 - integrate all options into "config.scm" 84 - integrate all options into "config.scm"
85 - change config-file writing to exclude options set to default values 85 - change config-file writing to exclude options set to default values
86* ARM: 86* ARM:
87 - implement exponential back-off for service restarts
88 - better tracking of which config changes actually need to cause process restarts by ARM. 87 - better tracking of which config changes actually need to cause process restarts by ARM.
89 - have way to specify dependencies between services (to manage ARM restarts better) 88 - listen for requests to discover dependencies between services (and avoid
89 having to explicitly program start requests)
90 - better crash management (attach debugging support, capture and analyze
91 debug output, detect random vs. deterministic crashes)
92 - shutdown sequence?
90* CORE: 93* CORE:
91 - test case (test_core_api) hangs for a while (some timeout task not killed somewhere?) 94 - test case (test_core_api) hangs for a while (some timeout task not killed somewhere?)
92 - [./core/gnunet-service-core.c:469]: (style) struct or union member 'Neighbour::message_queue_size' is never used 95 - [./core/gnunet-service-core.c:469]: (style) struct or union member 'Neighbour::message_queue_size' is never used
diff --git a/contrib/defaults.conf b/contrib/defaults.conf
index 6f773bc11..65c286c25 100644
--- a/contrib/defaults.conf
+++ b/contrib/defaults.conf
@@ -31,7 +31,7 @@ BINARY = gnunet-service-arm
31ACCEPT_FROM = 127.0.0.1; 31ACCEPT_FROM = 127.0.0.1;
32ACCEPT_FROM6 = ::1; 32ACCEPT_FROM6 = ::1;
33ALLOW_SHUTDOWN = YES 33ALLOW_SHUTDOWN = YES
34DEFAULTSERVICES = resolver transport core 34DEFAULTSERVICES = resolver transport core
35# GLOBAL_PREFIX = 35# GLOBAL_PREFIX =
36# USERNAME = 36# USERNAME =
37# MAXBUF = 37# MAXBUF =
@@ -118,7 +118,6 @@ ALLOW_SHUTDOWN = YES
118# REJECT_FROM6 = 118# REJECT_FROM6 =
119# PREFIX = 119# PREFIX =
120 120
121
122[core] 121[core]
123PORT = 2092 122PORT = 2092
124HOSTNAME = localhost 123HOSTNAME = localhost
@@ -150,7 +149,6 @@ FRIENDS = $SERVICEHOME/friends
150CONFIG = $DEFAULTCONFIG 149CONFIG = $DEFAULTCONFIG
151BINARY = gnunet-daemon-topology 150BINARY = gnunet-daemon-topology
152 151
153
154[hostlist] 152[hostlist]
155# port for hostlist http server 153# port for hostlist http server
156HTTPPORT = 8080 154HTTPPORT = 8080
diff --git a/src/transport/gnunet-nat-client.c b/src/transport/gnunet-nat-client.c
index 3bf409461..0fce09e71 100644
--- a/src/transport/gnunet-nat-client.c
+++ b/src/transport/gnunet-nat-client.c
@@ -42,27 +42,27 @@
42#include <netinet/ip_icmp.h> 42#include <netinet/ip_icmp.h>
43#include <netinet/in.h> 43#include <netinet/in.h>
44 44
45#define DEBUG 0 45#define DEBUG 1
46 46
47/** 47/**
48 * Number of UDP ports to keep open (typically >= 256) 48 * Number of UDP ports to keep open (typically >= 256)
49 */ 49 */
50#define NUM_UDP_PORTS 256 50#define NUM_UDP_PORTS 1024
51 51
52/** 52/**
53 * Number of ICMP replies to send per message received (typically >= 1024) 53 * Number of ICMP replies to send per message received (typically >= 1024)
54 */ 54 */
55#define NUM_ICMP_REPLIES 1024 55#define NUM_ICMP_REPLIES 10240
56 56
57/** 57/**
58 * How often do we send our UDP messages to keep ports open? (typically < 100ms) 58 * How often do we send our UDP messages to keep ports open? (typically < 100ms)
59 */ 59 */
60#define UDP_SEND_FREQUENCY_MS 50 60#define UDP_SEND_FREQUENCY_MS 10
61 61
62/** 62/**
63 * Port we use for the dummy target. 63 * Port we use for the dummy target.
64 */ 64 */
65#define NAT_TRAV_PORT 2222 65#define NAT_TRAV_PORT 22223
66 66
67/** 67/**
68 * How often do we retry to open and bind a UDP socket before giving up? 68 * How often do we retry to open and bind a UDP socket before giving up?
diff --git a/src/transport/gnunet-service-transport.c b/src/transport/gnunet-service-transport.c
index 84158584f..6a8b2db5e 100644
--- a/src/transport/gnunet-service-transport.c
+++ b/src/transport/gnunet-service-transport.c
@@ -1136,7 +1136,6 @@ find_ready_address(struct NeighborList *neighbor)
1136 struct ReadyList *head = neighbor->plugins; 1136 struct ReadyList *head = neighbor->plugins;
1137 struct PeerAddressList *addresses; 1137 struct PeerAddressList *addresses;
1138 struct GNUNET_TIME_Absolute now = GNUNET_TIME_absolute_get (); 1138 struct GNUNET_TIME_Absolute now = GNUNET_TIME_absolute_get ();
1139 struct GNUNET_TIME_Relative min_latency = GNUNET_TIME_relative_get_forever();
1140 struct PeerAddressList *best_address; 1139 struct PeerAddressList *best_address;
1141 1140
1142 best_address = NULL; 1141 best_address = NULL;
@@ -1168,7 +1167,7 @@ find_ready_address(struct NeighborList *neighbor)
1168#if DEBUG_TRANSPORT 1167#if DEBUG_TRANSPORT
1169 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 1168 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
1170 "Found address with latency %llu (previous best was %llu), setting as best found yet!\n", 1169 "Found address with latency %llu (previous best was %llu), setting as best found yet!\n",
1171 addresses->latency.value, best_address == NULL ? min_latency.value : best_address->latency.value); 1170 addresses->latency.value, best_address == NULL ? -1LL : best_address->latency.value);
1172#endif 1171#endif
1173 best_address = addresses; 1172 best_address = addresses;
1174 } 1173 }