From: Bart Polot Date: Thu, 30 Apr 2015 11:00:34 +0000 (+0000) Subject: fix traffic stall in case the is more messages queued in the tunnel buffer than a... X-Git-Tag: initial-import-from-subversion-38251~1943 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=7cc8739c7f232f7225ea684074a62830857e1738;p=oweals%2Fgnunet.git fix traffic stall in case the is more messages queued in the tunnel buffer than a connection would accept at once --- diff --git a/src/cadet/gnunet-service-cadet_tunnel.c b/src/cadet/gnunet-service-cadet_tunnel.c index 9c3fff227..b4eca603d 100644 --- a/src/cadet/gnunet-service-cadet_tunnel.c +++ b/src/cadet/gnunet-service-cadet_tunnel.c @@ -4048,6 +4048,9 @@ GCT_unchoke_channels (struct CadetTunnel *t) if (NULL != t->channel_head) LOG (GNUNET_ERROR_TYPE_DEBUG, " head ch: %p\n", t->channel_head->ch); + if (NULL != t->tq_head) + send_queued_data (t); + /* Get buffer space */ buffer = GCT_get_connections_buffer (t); if (0 == buffer)