Next try to fix the tcp reliability test problem
authorMatthias Wachs <wachs@net.in.tum.de>
Thu, 11 Nov 2010 13:28:59 +0000 (13:28 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Thu, 11 Nov 2010 13:28:59 +0000 (13:28 +0000)
This config fixes the failing at least on my system

src/transport/test_transport_api_tcp_peer1.conf
src/transport/test_transport_api_tcp_peer2.conf

index b06b53d245b0ce1cadc0ef9ec43eea7b5489947f..554f012463e00301c2c48c943038dddcb304fe12 100644 (file)
@@ -1,7 +1,12 @@
 [transport-tcp]
+DISABLEV6 = YES
 PORT = 12368
 BINDTO = 127.0.0.1
-
+BEHIND_NAT = YES
+ONLY_NAT_ADDRESSES = YES
+ALLOW_NAT = NO
+INTERNAL_ADDRESS = 127.0.0.1
+EXTERNAL_ADDRESS = 127.0.0.1
 [fs]
 AUTOSTART = NO
 
@@ -32,7 +37,7 @@ MINIMUM-FRIENDS = 0
 
 [transport]
 PLUGINS = tcp
-DEBUG = NO
+#DEBUG = YES
 #PREFIX = xterm -T transport2 -e gdb --command=cmd --args
 #PREFIX = valgrind --tool=memcheck --leak-check=full --log-file=transport%p
 ACCEPT_FROM6 = ::1;
@@ -90,10 +95,6 @@ HOSTNAME = localhost
 PORT = 12366
 UNIXPATH = /tmp/gnunet-p1-service-arm.sock
 
-[transport-tcp]
-TIMEOUT = 300000
-PORT = 12368
-
 [TESTING]
 WEAKRANDOM = YES
 
@@ -101,7 +102,7 @@ WEAKRANDOM = YES
 HOSTKEY = $SERVICEHOME/.hostkey
 
 [PATHS]
-DEFAULTCONFIG = test_transport_api_tcp_peer1.conf
+#DEFAULTCONFIG = test_transport_api_tcp_peer1.conf
 SERVICEHOME = /tmp/test-gnunetd-transport-peer-1/
 
 
index 55fb76076e537e72427ff2df516d6243dcb2e43a..96ae620cace43604e9ede001f086f4d6d04a21f2 100644 (file)
@@ -1,6 +1,11 @@
 [transport-tcp]
+DISABLEV6 = YES
 PORT = 22368
 BINDTO = 127.0.0.1
+BEHIND_NAT = NO
+ALLOW_NAT = YES
+EXTERNAL_ADDRESS = 127.0.0.1
+INTERNAL_ADDRESS = 127.0.0.1
 
 [core]
 AUTOSTART = NO
@@ -32,7 +37,7 @@ MINIMUM-FRIENDS = 0
 
 [transport]
 PLUGINS = tcp
-DEBUG = NO
+#DEBUG = YES
 ACCEPT_FROM6 = ::1;
 ACCEPT_FROM = 127.0.0.1;
 NEIGHBOUR_LIMIT = 50
@@ -91,10 +96,6 @@ HOSTNAME = localhost
 PORT = 22366
 UNIXPATH = /tmp/gnunet-p2-service-arm.sock
 
-[transport-tcp]
-TIMEOUT = 300000
-PORT = 22368
-
 [TESTING]
 WEAKRANDOM = YES
 
@@ -102,7 +103,7 @@ WEAKRANDOM = YES
 HOSTKEY = $SERVICEHOME/.hostkey
 
 [PATHS]
-DEFAULTCONFIG = test_transport_api_tcp_peer2.conf
+#DEFAULTCONFIG = test_transport_api_tcp_peer2.conf
 SERVICEHOME = /tmp/test-gnunetd-transport-peer-2/