- calculate the correct amount of messages to allow per connection
authorBart Polot <bart@net.in.tum.de>
Mon, 15 Dec 2014 07:18:06 +0000 (07:18 +0000)
committerBart Polot <bart@net.in.tum.de>
Mon, 15 Dec 2014 07:18:06 +0000 (07:18 +0000)
src/cadet/gnunet-service-cadet_tunnel.c

index dbacd59f0be4c6d63ace1a6bbac877f3abf62a8b..2eacb17b6f60dea74c0b64d50e719b050a5852c7 100644 (file)
@@ -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;