commit c988fa3520d372343a21a19b22ca0a8d473cd47b
parent ce3e782c901dbc1edf7462f7ad534715ec22733f
Author: Bart Polot <bart@net.in.tum.de>
Date: Wed, 4 Dec 2013 17:09:22 +0000
- dont authorize a client to send more data in case a duplicate CHANNEL_ACK is received while the connection buffer is full
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/mesh/gnunet-service-mesh_channel.c b/src/mesh/gnunet-service-mesh_channel.c
@@ -1064,7 +1064,8 @@ channel_confirm (struct MeshChannel *ch, int fwd)
rel = fwd ? ch->root_rel : ch->dest_rel;
rel->client_ready = GNUNET_YES;
rel->expected_delay = rel->retry_timer;
- send_client_ack (ch, fwd);
+ if (GMT_get_connections_buffer (ch->t) > 0 || GMT_is_loopback (ch->t))
+ send_client_ack (ch, fwd);
if (GNUNET_SCHEDULER_NO_TASK != rel->retry_task)
{