summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Brodski <david@brodski.eu>2011-07-26 22:52:07 +0000
committerDavid Brodski <david@brodski.eu>2011-07-26 22:52:07 +0000
commit7b53e3b84e26a63562373d61a555eb71405a9b11 (patch)
tree3aa7ab5185a5f11477ee192d95f8077c3ce87c93
parent1558b76dfd91a5fb09a025f6e54dcf78230e22e0 (diff)
Removed MTU assert, added assert for strange error with scheduler
-rw-r--r--src/fragmentation/fragmentation.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fragmentation/fragmentation.c b/src/fragmentation/fragmentation.c
index 524db5230..71a84225c 100644
--- a/src/fragmentation/fragmentation.c
+++ b/src/fragmentation/fragmentation.c
@@ -253,7 +253,7 @@ GNUNET_FRAGMENT_context_create (struct GNUNET_STATISTICS_Handle *stats,
GNUNET_STATISTICS_update (stats,
_("# total size of fragmented messages"),
size, GNUNET_NO);
- GNUNET_assert (size > mtu);
+ //GNUNET_assert (size > mtu);
fc = GNUNET_malloc (sizeof (struct GNUNET_FRAGMENT_Context) + size);
fc->stats = stats;
fc->mtu = mtu;
@@ -347,6 +347,7 @@ GNUNET_FRAGMENT_process_ack (struct GNUNET_FRAGMENT_Context *fc,
if (0 != fc->acks)
{
/* more to transmit, do so right now (if tracker permits...) */
+ GNUNET_assert(fc->task != GNUNET_SCHEDULER_NO_TASK);
GNUNET_SCHEDULER_cancel (fc->task);
fc->task = GNUNET_SCHEDULER_add_now (&transmit_next,
fc);