From a97019931121ce990f4e114bf32f01bca0423b85 Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Fri, 28 Jun 2013 11:49:16 +0000 Subject: [PATCH] - fix nobuffer behavior --- src/mesh/gnunet-service-mesh-new.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/mesh/gnunet-service-mesh-new.c b/src/mesh/gnunet-service-mesh-new.c index 5a259bfbc..7ba9e0e08 100644 --- a/src/mesh/gnunet-service-mesh-new.c +++ b/src/mesh/gnunet-service-mesh-new.c @@ -2082,7 +2082,8 @@ tunnel_send_bck_ack (struct MeshTunnel *t, uint16_t type) if (t->next_fc.last_ack_sent == ack && GNUNET_NO == t->force_ack) { GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, - " Not sending ACK, not needed\n"); + " Not sending ACK, not needed, last ack sent was %u\n", + t->next_fc.last_ack_sent); return; } GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, @@ -3134,8 +3135,6 @@ handle_mesh_path_create (void *cls, const struct GNUNET_PeerIdentity *peer, if (0 != (opt & MESH_TUNNEL_OPT_NOBUFFER)) { t->nobuffer = GNUNET_YES; - t->prev_fc.last_ack_sent = t->prev_fc.last_pid_recv + 1; - t->next_fc.last_ack_sent = t->next_fc.last_pid_recv + 1; t->queue_max = 1; } GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, " nobuffer:%d\n", t->nobuffer); -- 2.25.1