aboutsummaryrefslogtreecommitdiff
path: root/src/fragmentation
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-07-19 09:30:23 +0000
committerChristian Grothoff <christian@grothoff.org>2011-07-19 09:30:23 +0000
commitd7cbf67c90edf504764fd12b7d0927e0d7696f45 (patch)
tree86e70f9233a55245c5918a14eae1d8a4c72e26e3 /src/fragmentation
parentf9bc56202ffe7d259ee12af6b7023988ee0f674c (diff)
downloadgnunet-d7cbf67c90edf504764fd12b7d0927e0d7696f45.tar.gz
gnunet-d7cbf67c90edf504764fd12b7d0927e0d7696f45.zip
tolerate duplicate fragment ids
Diffstat (limited to 'src/fragmentation')
-rw-r--r--src/fragmentation/test_fragmentation.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fragmentation/test_fragmentation.c b/src/fragmentation/test_fragmentation.c
index 1a231bbb4..70fd84944 100644
--- a/src/fragmentation/test_fragmentation.c
+++ b/src/fragmentation/test_fragmentation.c
@@ -81,7 +81,8 @@ proc_msgs (void *cls,
81 if (0 == (total % (NUM_MSGS / 100))) 81 if (0 == (total % (NUM_MSGS / 100)))
82 fprintf (stderr, "."); 82 fprintf (stderr, ".");
83#endif 83#endif
84 if (total == NUM_MSGS) 84 /* tolerate 10% loss, i.e. due to duplicate fragment IDs */
85 if (total >= NUM_MSGS - (NUM_MSGS / 10))
85 { 86 {
86 ret = 0; 87 ret = 0;
87 GNUNET_DEFRAGMENT_context_destroy (defrag); 88 GNUNET_DEFRAGMENT_context_destroy (defrag);