diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-10-22 12:36:41 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-10-22 12:36:41 +0000 |
commit | ddd69826be47a1956c6972c2cfcadfa7902b8639 (patch) | |
tree | dd632db2ba084a1a83b0ef57189333f2bbd354a6 /src/fragmentation/test_fragmentation.c | |
parent | 582f893b55d9536864b59ad3ccb1dfeb43ff31b7 (diff) | |
download | gnunet-ddd69826be47a1956c6972c2cfcadfa7902b8639.tar.gz gnunet-ddd69826be47a1956c6972c2cfcadfa7902b8639.zip |
-trying to fix fragmentation / udp performance, not working yet
Diffstat (limited to 'src/fragmentation/test_fragmentation.c')
-rw-r--r-- | src/fragmentation/test_fragmentation.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/fragmentation/test_fragmentation.c b/src/fragmentation/test_fragmentation.c index 0381a8dd0..ecbcdddab 100644 --- a/src/fragmentation/test_fragmentation.c +++ b/src/fragmentation/test_fragmentation.c | |||
@@ -77,7 +77,7 @@ do_shutdown (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
77 | { | 77 | { |
78 | if (frags[i] == NULL) | 78 | if (frags[i] == NULL) |
79 | continue; | 79 | continue; |
80 | GNUNET_FRAGMENT_context_destroy (frags[i]); | 80 | GNUNET_FRAGMENT_context_destroy (frags[i], NULL, NULL); |
81 | frags[i] = NULL; | 81 | frags[i] = NULL; |
82 | } | 82 | } |
83 | } | 83 | } |
@@ -134,7 +134,7 @@ proc_acks (void *cls, uint32_t msg_id, const struct GNUNET_MessageHeader *hdr) | |||
134 | #if DETAILS | 134 | #if DETAILS |
135 | FPRINTF (stderr, "%s", "@"); /* good ACK */ | 135 | FPRINTF (stderr, "%s", "@"); /* good ACK */ |
136 | #endif | 136 | #endif |
137 | GNUNET_FRAGMENT_context_destroy (frags[i]); | 137 | GNUNET_FRAGMENT_context_destroy (frags[i], NULL, NULL); |
138 | frags[i] = NULL; | 138 | frags[i] = NULL; |
139 | acks++; | 139 | acks++; |
140 | return; | 140 | return; |
@@ -215,7 +215,9 @@ run (void *cls, char *const *args, const char *cfgfile, | |||
215 | htons (sizeof (struct GNUNET_MessageHeader) + (17 * i) % (32 * 1024)); | 215 | htons (sizeof (struct GNUNET_MessageHeader) + (17 * i) % (32 * 1024)); |
216 | frags[i] = GNUNET_FRAGMENT_context_create (NULL /* no stats */ , | 216 | frags[i] = GNUNET_FRAGMENT_context_create (NULL /* no stats */ , |
217 | MTU, &trackers[i], | 217 | MTU, &trackers[i], |
218 | GNUNET_TIME_UNIT_SECONDS, msg, | 218 | GNUNET_TIME_UNIT_MILLISECONDS, |
219 | GNUNET_TIME_UNIT_SECONDS, | ||
220 | msg, | ||
219 | &proc_frac, &frags[i]); | 221 | &proc_frac, &frags[i]); |
220 | } | 222 | } |
221 | } | 223 | } |