diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-06-25 21:09:43 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-06-25 21:09:43 +0000 |
commit | 59921d3b90ed8bf823605517f6692c26a1c9dc44 (patch) | |
tree | 196ba40d594799534e9c95966698f6d33c0a6156 /src/transport | |
parent | 537903a8dc4c3ecf2dfa382af0289ddf890adfc7 (diff) | |
download | gnunet-59921d3b90ed8bf823605517f6692c26a1c9dc44.tar.gz gnunet-59921d3b90ed8bf823605517f6692c26a1c9dc44.zip |
fixing common off-by-one error with respect to maximum message size
Diffstat (limited to 'src/transport')
-rw-r--r-- | src/transport/test_transport_api_reliability.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/transport/test_transport_api_reliability.c b/src/transport/test_transport_api_reliability.c index 4f00fa0d9..27b86b388 100644 --- a/src/transport/test_transport_api_reliability.c +++ b/src/transport/test_transport_api_reliability.c | |||
@@ -32,6 +32,7 @@ | |||
32 | #include "gnunet_os_lib.h" | 32 | #include "gnunet_os_lib.h" |
33 | #include "gnunet_program_lib.h" | 33 | #include "gnunet_program_lib.h" |
34 | #include "gnunet_scheduler_lib.h" | 34 | #include "gnunet_scheduler_lib.h" |
35 | #include "gnunet_server_lib.h" | ||
35 | #include "gnunet_transport_service.h" | 36 | #include "gnunet_transport_service.h" |
36 | #include "transport.h" | 37 | #include "transport.h" |
37 | 38 | ||
@@ -46,7 +47,7 @@ | |||
46 | * 'MAX_PENDING' in 'gnunet-service-transport.c', otherwise | 47 | * 'MAX_PENDING' in 'gnunet-service-transport.c', otherwise |
47 | * messages may be dropped even for a reliable transport. | 48 | * messages may be dropped even for a reliable transport. |
48 | */ | 49 | */ |
49 | #define TOTAL_MSGS (60000 * 20) | 50 | #define TOTAL_MSGS (60000 * 2) |
50 | 51 | ||
51 | /** | 52 | /** |
52 | * How long until we give up on transmitting the message? | 53 | * How long until we give up on transmitting the message? |