aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2013-11-28 01:28:41 +0000
committerBart Polot <bart@net.in.tum.de>2013-11-28 01:28:41 +0000
commit69b47f0c65a68e8731af238246b1b29121117d7c (patch)
tree7d3bb447dedcab34191a642737779fa132c927d4 /src
parent51eb2b885c15c707052a306e0205dd80c22f5f4f (diff)
downloadgnunet-69b47f0c65a68e8731af238246b1b29121117d7c.tar.gz
gnunet-69b47f0c65a68e8731af238246b1b29121117d7c.zip
- send conncetion ack before kex exchange -> cleaner state maintenance
Diffstat (limited to 'src')
-rw-r--r--src/mesh/gnunet-service-mesh_connection.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mesh/gnunet-service-mesh_connection.c b/src/mesh/gnunet-service-mesh_connection.c
index 417bda417..10fcb7b11 100644
--- a/src/mesh/gnunet-service-mesh_connection.c
+++ b/src/mesh/gnunet-service-mesh_connection.c
@@ -1391,13 +1391,14 @@ GMC_handle_confirm (void *cls, const struct GNUNET_PeerIdentity *peer,
1391 if (MESH_CONNECTION_SENT == oldstate) 1391 if (MESH_CONNECTION_SENT == oldstate)
1392 connection_reset_timeout (c, GNUNET_YES); 1392 connection_reset_timeout (c, GNUNET_YES);
1393 1393
1394 /* Change connection and tunnel state */ 1394 /* Change connection state */
1395 connection_change_state (c, MESH_CONNECTION_READY); 1395 connection_change_state (c, MESH_CONNECTION_READY);
1396 send_connection_ack (c, GNUNET_YES);
1397
1398 /* Change tunnel state, trigger KX */
1396 if (MESH_TUNNEL3_WAITING == GMT_get_cstate (c->t)) 1399 if (MESH_TUNNEL3_WAITING == GMT_get_cstate (c->t))
1397 GMT_change_cstate (c->t, MESH_TUNNEL3_READY); 1400 GMT_change_cstate (c->t, MESH_TUNNEL3_READY);
1398 1401
1399 /* Send ACK (~TCP ACK)*/
1400 send_connection_ack (c, GNUNET_YES);
1401 return GNUNET_OK; 1402 return GNUNET_OK;
1402 } 1403 }
1403 1404