From: Bart Polot Date: Mon, 15 Dec 2014 07:18:06 +0000 (+0000) Subject: - calculate the correct amount of messages to allow per connection X-Git-Tag: initial-import-from-subversion-38251~2905 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=dab58f120bc318904301830a0a40f961482e5161;p=oweals%2Fgnunet.git - calculate the correct amount of messages to allow per connection --- 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;