From dab58f120bc318904301830a0a40f961482e5161 Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Mon, 15 Dec 2014 07:18:06 +0000 Subject: [PATCH] - calculate the correct amount of messages to allow per connection --- src/cadet/gnunet-service-cadet_tunnel.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/cadet/gnunet-service-cadet_tunnel.c b/src/cadet/gnunet-service-cadet_tunnel.c index dbacd59f0..2eacb17b6 100644 --- a/src/cadet/gnunet-service-cadet_tunnel.c +++ b/src/cadet/gnunet-service-cadet_tunnel.c @@ -3008,12 +3008,10 @@ GCT_send_connection_acks (struct CadetTunnel *t) /* Make sure there is no overflow */ if (allowed > buffer) - { return; - } /* Authorize connections to send more data */ - to_allow = buffer; /* FIXME (- allowed;) */ + to_allow = buffer - allowed; for (iter = t->connection_head; NULL != iter && to_allow > 0; -- 2.25.1