[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r35074 - gnunet/src/ats
From: |
gnunet |
Subject: |
[GNUnet-SVN] r35074 - gnunet/src/ats |
Date: |
Tue, 3 Feb 2015 13:33:05 +0100 |
Author: grothoff
Date: 2015-02-03 13:33:04 +0100 (Tue, 03 Feb 2015)
New Revision: 35074
Modified:
gnunet/src/ats/ats_api_scheduling.c
Log:
do signal disconnect to transport service, even if specific address is
in_destroy
Modified: gnunet/src/ats/ats_api_scheduling.c
===================================================================
--- gnunet/src/ats/ats_api_scheduling.c 2015-02-03 00:23:10 UTC (rev 35073)
+++ gnunet/src/ats/ats_api_scheduling.c 2015-02-03 12:33:04 UTC (rev 35074)
@@ -481,7 +481,18 @@
return;
if (GNUNET_YES == ar->in_destroy)
{
- /* ignore suggestion, as this address is dying */
+ /* ignore suggestion, as this address is dying, unless BW is 0,
+ in that case signal 'disconnect' via BW 0 */
+ if ( (0 == ntohl (m->bandwidth_out.value__)) &&
+ (0 == ntohl (m->bandwidth_in.value__)) )
+ {
+ sh->suggest_cb (sh->suggest_cb_cls,
+ &m->peer,
+ NULL,
+ NULL,
+ m->bandwidth_out,
+ m->bandwidth_in);
+ }
return;
}
if ( (NULL == ar->session) &&
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r35074 - gnunet/src/ats,
gnunet <=