aboutsummaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-07-09 12:24:18 +0000
committerChristian Grothoff <christian@grothoff.org>2010-07-09 12:24:18 +0000
commit1820c8cd5075a78f1766be607f938f7a77d61e00 (patch)
treef1d75f690245d84d33a15d45c392f3ecae39462b /src/core
parent0469252aa72449600e92cea94c16f9fb44eab059 (diff)
downloadgnunet-1820c8cd5075a78f1766be607f938f7a77d61e00.tar.gz
gnunet-1820c8cd5075a78f1766be607f938f7a77d61e00.zip
fix
Diffstat (limited to 'src/core')
-rw-r--r--src/core/test_core_api_peer1.conf1
-rw-r--r--src/core/test_core_api_reliability.c16
2 files changed, 9 insertions, 8 deletions
diff --git a/src/core/test_core_api_peer1.conf b/src/core/test_core_api_peer1.conf
index eaab53936..2aef1811c 100644
--- a/src/core/test_core_api_peer1.conf
+++ b/src/core/test_core_api_peer1.conf
@@ -44,6 +44,7 @@ UNIXPATH = /tmp/gnunet-p1-service-peerinfo.sock
44PORT = 12470 44PORT = 12470
45UNIXPATH = /tmp/gnunet-p1-service-core.sock 45UNIXPATH = /tmp/gnunet-p1-service-core.sock
46#PREFIX = valgrind --tool=memcheck 46#PREFIX = valgrind --tool=memcheck
47#PREFIX = valgrind --tool=callgrind
47#OPTIONS = -l log-core-1 48#OPTIONS = -l log-core-1
48#PREFIX = xterm -e xterm -T core1 -e gdb --args 49#PREFIX = xterm -e xterm -T core1 -e gdb --args
49#PREFIX = xterm -T core1 -e 50#PREFIX = xterm -T core1 -e
diff --git a/src/core/test_core_api_reliability.c b/src/core/test_core_api_reliability.c
index c2375620a..e8e1ad0f6 100644
--- a/src/core/test_core_api_reliability.c
+++ b/src/core/test_core_api_reliability.c
@@ -40,9 +40,16 @@
40#define START_ARM GNUNET_YES 40#define START_ARM GNUNET_YES
41 41
42/** 42/**
43 * Note that this value must not significantly exceed
44 * 'MAX_PENDING' in 'gnunet-service-transport.c', otherwise
45 * messages may be dropped even for a reliable transport.
46 */
47#define TOTAL_MSGS (600 * 200)
48
49/**
43 * How long until we give up on transmitting the message? 50 * How long until we give up on transmitting the message?
44 */ 51 */
45#define TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 60) 52#define TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 6000)
46 53
47/** 54/**
48 * What delay do we request from the core service for transmission? 55 * What delay do we request from the core service for transmission?
@@ -58,13 +65,6 @@ static unsigned long long total_bytes;
58 65
59static struct GNUNET_TIME_Absolute start_time; 66static struct GNUNET_TIME_Absolute start_time;
60 67
61/**
62 * Note that this value must not significantly exceed
63 * 'MAX_PENDING' in 'gnunet-service-transport.c', otherwise
64 * messages may be dropped even for a reliable transport.
65 */
66#define TOTAL_MSGS (600 * 2)
67
68struct PeerContext 68struct PeerContext
69{ 69{
70 struct GNUNET_CONFIGURATION_Handle *cfg; 70 struct GNUNET_CONFIGURATION_Handle *cfg;