commit f99b810f9b3d19ef65edb3b24dde4a9ffc538f60
parent 8b4b63e114581fe184ddc46678547dbcae9d93f6
Author: Bart Polot <bart@net.in.tum.de>
Date: Mon, 9 Dec 2013 13:41:19 +0000
- log
Diffstat:
1 file changed, 13 insertions(+), 3 deletions(-)
diff --git a/src/mesh/gnunet-service-mesh_channel.c b/src/mesh/gnunet-service-mesh_channel.c
@@ -1517,10 +1517,20 @@ GMCH_allow_client (struct MeshChannel *ch, int fwd)
GNUNET_break (GNUNET_NO != ch->destroy);
return;
}
- if (NULL != rel->head_sent && 64 <= rel->mid_send - rel->head_sent->mid)
+ if (NULL != rel->head_sent)
{
- LOG (GNUNET_ERROR_TYPE_DEBUG, " too big MID gap! Wait for ACK.\n");
- return;
+ if (64 <= rel->mid_send - rel->head_sent->mid)
+ {
+ LOG (GNUNET_ERROR_TYPE_DEBUG, " too big MID gap! Wait for ACK.\n");
+ return;
+ }
+ else
+ LOG (GNUNET_ERROR_TYPE_DEBUG, " gap ok: %u - %u\n",
+ rel->head_sent->mid, rel->mid_send);
+ }
+ else
+ {
+ LOG (GNUNET_ERROR_TYPE_DEBUG, " head sent is NULL\n");
}
}