gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r28482 - gnunet/src/mesh


From: gnunet
Subject: [GNUnet-SVN] r28482 - gnunet/src/mesh
Date: Fri, 9 Aug 2013 19:19:21 +0200

Author: bartpolot
Date: 2013-08-09 19:19:21 +0200 (Fri, 09 Aug 2013)
New Revision: 28482

Modified:
   gnunet/src/mesh/gnunet-service-mesh-enc.c
Log:
- fixes


Modified: gnunet/src/mesh/gnunet-service-mesh-enc.c
===================================================================
--- gnunet/src/mesh/gnunet-service-mesh-enc.c   2013-08-08 21:40:39 UTC (rev 
28481)
+++ gnunet/src/mesh/gnunet-service-mesh-enc.c   2013-08-09 17:19:21 UTC (rev 
28482)
@@ -5474,14 +5474,12 @@
   }
   ch->port = ntohl (msg->port);
   channel_set_options (ch, ntohl (msg->opt));
-  if (GNUNET_YES == ch->reliable)
-  {
-    GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "!!! Reliable\n");
-    ch->fwd_rel = GNUNET_malloc (sizeof (struct MeshChannelReliability));
-    ch->fwd_rel->ch = ch;
-    ch->fwd_rel->expected_delay = MESH_RETRANSMIT_TIME;
-  }
 
+  /* In unreliable channels, we'll use the DLL to buffer data for the root */
+  ch->fwd_rel = GNUNET_malloc (sizeof (struct MeshChannelReliability));
+  ch->fwd_rel->ch = ch;
+  ch->fwd_rel->expected_delay = MESH_RETRANSMIT_TIME;
+
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "CREATED CHANNEL %s[%x]:%u (%x)\n",
               GNUNET_h2s (&t->id), ch->gid, ch->port, ch->lid_root);
   peer_connect (peer);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]