diff options
-rw-r--r-- | src/fragmentation/fragmentation.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/fragmentation/fragmentation.c b/src/fragmentation/fragmentation.c index 21bbc538d..eb0bad675 100644 --- a/src/fragmentation/fragmentation.c +++ b/src/fragmentation/fragmentation.c | |||
@@ -258,9 +258,13 @@ transmit_next (void *cls) | |||
258 | fsize); | 258 | fsize); |
259 | else | 259 | else |
260 | delay = GNUNET_TIME_UNIT_ZERO; | 260 | delay = GNUNET_TIME_UNIT_ZERO; |
261 | delay = GNUNET_TIME_relative_max (delay, | 261 | if (fc->num_rounds < 64) |
262 | GNUNET_TIME_relative_multiply (fc->msg_delay, | 262 | delay = GNUNET_TIME_relative_max (delay, |
263 | (1ULL << fc->num_rounds))); | 263 | GNUNET_TIME_relative_multiply |
264 | (fc->msg_delay, | ||
265 | (1ULL << fc->num_rounds))); | ||
266 | else | ||
267 | delay = GNUNET_TIME_UNIT_FOREVER_REL; | ||
264 | if (wrap) | 268 | if (wrap) |
265 | { | 269 | { |
266 | /* full round transmitted wait 2x delay for ACK before going again */ | 270 | /* full round transmitted wait 2x delay for ACK before going again */ |