[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r32987 - gnunet/src/mesh
From: |
gnunet |
Subject: |
[GNUnet-SVN] r32987 - gnunet/src/mesh |
Date: |
Wed, 9 Apr 2014 12:56:54 +0200 |
Author: bartpolot
Date: 2014-04-09 12:56:53 +0200 (Wed, 09 Apr 2014)
New Revision: 32987
Modified:
gnunet/src/mesh/gnunet-service-mesh_channel.c
Log:
- destroy a channel if some traffic is missing and the channel has been
remotely destroyed
Modified: gnunet/src/mesh/gnunet-service-mesh_channel.c
===================================================================
--- gnunet/src/mesh/gnunet-service-mesh_channel.c 2014-04-09 10:56:51 UTC
(rev 32986)
+++ gnunet/src/mesh/gnunet-service-mesh_channel.c 2014-04-09 10:56:53 UTC
(rev 32987)
@@ -600,6 +600,16 @@
" reliable && don't have %u, next is %u\n",
rel->mid_recv,
copy->mid);
+ if (GNUNET_YES == ch->destroy)
+ {
+ /* We don't have the next data piece and the remote peer has closed the
+ * channel. We won't receive it anymore, so just destroy the channel.
+ * FIXME: wait some time to allow other connections to
+ * deliver missing messages
+ */
+ send_destroy (ch, GNUNET_YES);
+ GMCH_destroy (ch);
+ }
}
}
LOG (GNUNET_ERROR_TYPE_DEBUG, "send_buffered_data END\n");
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r32987 - gnunet/src/mesh,
gnunet <=