- tmp hack
[oweals/gnunet.git] / src / mesh / mesh2_api.c
index 0098b2bf08f1e7abf0854cb92c2c408e45f0fd08..80c1c03d4183b482f17e2f95c625bcc3200d522c 100644 (file)
@@ -448,6 +448,8 @@ create_tunnel (struct GNUNET_MESH_Handle *h, MESH_TunnelNumber tid)
   }
   t->last_ack_recv = (uint32_t) -1;
   t->last_pid_recv = (uint32_t) -1;
+  t->last_ack_sent = (uint32_t) -1;
+  t->last_pid_sent = (uint32_t) -1;
   t->buffering = GNUNET_YES;
   return t;
 }
@@ -819,6 +821,7 @@ process_tunnel_created (struct GNUNET_MESH_Handle *h,
   if (NULL != h->new_tunnel)
   {
     t = create_tunnel (h, tid);
+    t->last_ack_sent = INITIAL_WINDOW_SIZE - 1;
     t->peer = GNUNET_PEER_intern (&msg->peer);
     GNUNET_PEER_change_rc (t->peer, 1);
     t->mesh = h;