- fix end-to-end stalling, update todo
authorBart Polot <bart@net.in.tum.de>
Mon, 15 Jul 2013 11:30:36 +0000 (11:30 +0000)
committerBart Polot <bart@net.in.tum.de>
Mon, 15 Jul 2013 11:30:36 +0000 (11:30 +0000)
src/mesh/gnunet-service-mesh.c

index f3a4a266e8c49a99a427e2e3a7aa6bac353594f5..53c5895e7967a6fcfea211723b21b8a599874748 100644 (file)
@@ -25,6 +25,8 @@
  *
  *  FIXME in progress:
  * - keep queues until receiving ACK
+ * - when sending in-order buffered data, wait for client ACKs
+ * - refactor unicast to make generic handling, assigning *rel and *fc
  *
  * TODO:
  * - relay corking down to core
@@ -2157,6 +2159,7 @@ tunnel_send_fwd_ack (struct MeshTunnel *t, uint16_t type)
       break;
     case GNUNET_MESSAGE_TYPE_MESH_ACK:
     case GNUNET_MESSAGE_TYPE_MESH_LOCAL_ACK:
+    case GNUNET_MESSAGE_TYPE_MESH_UNICAST_ACK:
       break;
     case GNUNET_MESSAGE_TYPE_MESH_POLL:
     case GNUNET_MESSAGE_TYPE_MESH_PATH_ACK:
@@ -4275,6 +4278,7 @@ handle_mesh_data_ack (void *cls, const struct GNUNET_PeerIdentity *peer,
     }
     else
       GNUNET_break (0);
+    tunnel_send_fwd_ack (t, GNUNET_MESSAGE_TYPE_MESH_UNICAST_ACK);
   }
   return GNUNET_OK;
 }