commit b783cdaca2c9f8931e592e27dee3ab76c0507c6c
parent a998e0abbd220035bdb333388da229852980e2cc
Author: Bart Polot <bart@net.in.tum.de>
Date: Fri, 7 Jun 2013 00:29:07 +0000
- remove fixed window size from service, fix crash
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/mesh/gnunet-service-mesh-new.c b/src/mesh/gnunet-service-mesh-new.c
@@ -2211,6 +2211,7 @@ tunnel_destroy (struct MeshTunnel *t)
if (NULL != t->client)
{
+ c = t->client;
GMC_hash32 (t->local_tid_dest, &hash);
if (GNUNET_YES !=
GNUNET_CONTAINER_multihashmap_remove (c->incoming_tunnels, &hash, t))
@@ -2506,7 +2507,7 @@ send_core_path_ack (void *cls, size_t size, void *buf)
GNUNET_break (0);
return 0;
}
- t->prev_fc.last_ack_sent = t->nobuffer ? 0 : INITIAL_WINDOW_SIZE - 1;
+ t->prev_fc.last_ack_sent = t->nobuffer ? 0 : t->queue_max - 1;
msg->header.size = htons (sizeof (struct GNUNET_MESH_PathACK));
msg->header.type = htons (GNUNET_MESSAGE_TYPE_MESH_PATH_ACK);
GNUNET_PEER_resolve (t->id.oid, &msg->oid);