From 2843334bbf608a979242c14ce5f4b5be54c39766 Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Mon, 6 Aug 2012 17:03:05 +0000 Subject: [PATCH] - initialize and consider ACK values fr tmt rdy --- src/mesh/mesh_api.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mesh/mesh_api.c b/src/mesh/mesh_api.c index ac1c3114e..201d18ae6 100644 --- a/src/mesh/mesh_api.c +++ b/src/mesh/mesh_api.c @@ -443,6 +443,7 @@ create_tunnel (struct GNUNET_MESH_Handle *h, MESH_TunnelNumber tid) { t->tid = tid; } + t->max_pid = 1; return t; } @@ -1996,6 +1997,9 @@ GNUNET_MESH_notify_transmit_ready (struct GNUNET_MESH_Tunnel *tunnel, int cork, add_to_queue (tunnel->mesh, th); if (NULL != tunnel->mesh->th) return th; + if (GNUNET_NO == PID_OVERFLOW(tunnel->pid, tunnel->max_pid) && + tunnel->max_pid <= tunnel->pid) + return th; LOG (GNUNET_ERROR_TYPE_DEBUG, " call notify tmt rdy\n"); tunnel->mesh->th = GNUNET_CLIENT_notify_transmit_ready (tunnel->mesh->client, th->size, -- 2.25.1