return;
}
/* construct PONG */
- tx.inbound_bw_limit = kx->bw_in; // FIXME!
+ tx.inbound_bw_limit = GNUNET_CONSTANTS_DEFAULT_BW_IN_OUT;
+ /* FIXME: here we should ideally ask ATS about unassigned bandwidth and fill in
+ a value based on that; using the minimum here results in a rather slow start... */
tx.challenge = t.challenge;
tx.target = t.target;
tp.header.type = htons (GNUNET_MESSAGE_TYPE_CORE_PONG);
kx->retry_set_key_task = GNUNET_SCHEDULER_NO_TASK;
GNUNET_assert (kx->keep_alive_task == GNUNET_SCHEDULER_NO_TASK);
update_timeout (kx);
+ GSC_SESSIONS_update (&kx->peer,
+ t.inbound_bw_limit);
break;
case KX_STATE_UP:
update_timeout (kx);
+ GSC_SESSIONS_update (&kx->peer,
+ t.inbound_bw_limit);
break;
default:
GNUNET_break (0);
* @author Christian Grothoff
*/
#include "platform.h"
-#include "gnunet_service_core.h"
-#include "gnunet_service_core_neighbours.h"
-#include "gnunet_service_core_kx.h"
-#include "gnunet_service_core_sessions.h"
+#include "gnunet-service-core.h"
+#include "gnunet-service-core_neighbours.h"
+#include "gnunet-service-core_kx.h"
+#include "gnunet-service-core_sessions.h"
/**
* Record kept for each request for transmission issued by a