aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2014-12-15 07:18:06 +0000
committerBart Polot <bart@net.in.tum.de>2014-12-15 07:18:06 +0000
commitdab58f120bc318904301830a0a40f961482e5161 (patch)
tree903b0157818614a5e24a87b85b9a8d3a76499e98 /src
parentce4e26155147024ecc816de20bf8471694f18011 (diff)
downloadgnunet-dab58f120bc318904301830a0a40f961482e5161.tar.gz
gnunet-dab58f120bc318904301830a0a40f961482e5161.zip
- calculate the correct amount of messages to allow per connection
Diffstat (limited to 'src')
-rw-r--r--src/cadet/gnunet-service-cadet_tunnel.c4
1 files changed, 1 insertions, 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)
3008 3008
3009 /* Make sure there is no overflow */ 3009 /* Make sure there is no overflow */
3010 if (allowed > buffer) 3010 if (allowed > buffer)
3011 {
3012 return; 3011 return;
3013 }
3014 3012
3015 /* Authorize connections to send more data */ 3013 /* Authorize connections to send more data */
3016 to_allow = buffer; /* FIXME (- allowed;) */ 3014 to_allow = buffer - allowed;
3017 3015
3018 for (iter = t->connection_head; 3016 for (iter = t->connection_head;
3019 NULL != iter && to_allow > 0; 3017 NULL != iter && to_allow > 0;