* or a first CONNECTION_ACK directed to us.
*
* @param connection Connection to confirm.
- * @param fwd Is this a fwd ACK? (First is bck (SYNACK), second is fwd (ACK))
+ * @param fwd Should we send it FWD?
+ * (First (~SYNACK) goes BCK, second (~ACK) goes FWD)
*/
static void
send_connection_ack (struct MeshConnection *connection, int fwd)
{
+ struct MeshFlowControl *fc;
struct MeshTunnel3 *t;
t = connection->t;
GMT_change_state (t, MESH_TUNNEL3_WAITING);
if (MESH_CONNECTION_READY != connection->state)
connection_change_state (connection, MESH_CONNECTION_SENT);
-
+ fc = fwd ? &connection->fwd_fc : &connection->bck_fc;
+ fc->queue_n++;
}
ACCEPT_FROM = 127.0.0.1;
HOSTNAME = localhost
PORT = 10511
-#PREFIX = valgrind --leak-check=full
+PREFIX = valgrind --leak-check=full
#PREFIX = xterm -geometry 100x85 -T peer1 -e gdb --args
REFRESH_PATH_TIME = 2 s
ID_ANNOUNCE_TIME = 5 s