#define MESH_DEBUG_DHT GNUNET_YES
#define MESH_DEBUG_CONNECTION GNUNET_NO
-#define INITIAL_WINDOW_SIZE 2
-#define ACK_THRESHOLD INITIAL_WINDOW_SIZE / 2
-
#if MESH_DEBUG_CONNECTION
#define DEBUG_CONN(...) GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, __VA_ARGS__)
#else
#define MESH_DEBUG GNUNET_YES
+#define INITIAL_WINDOW_SIZE 2
+#define ACK_THRESHOLD INITIAL_WINDOW_SIZE / 2
#include "platform.h"
#include "gnunet_common.h"
{
t->tid = tid;
}
- t->max_send_pid = 0;
+ t->max_send_pid = INITIAL_WINDOW_SIZE - 1;
t->last_recv_pid = (uint32_t) -1;
return t;
}
continue;
}
t->next_send_pid = 0;
- t->max_send_pid = 0;
+ t->max_send_pid = INITIAL_WINDOW_SIZE - 1;
t->last_recv_pid = (uint32_t) -1;
tmsg.header.type = htons (GNUNET_MESSAGE_TYPE_MESH_LOCAL_TUNNEL_CREATE);
tmsg.header.size = htons (sizeof (struct GNUNET_MESH_TunnelMessage));