diff options
author | Bart Polot <bart@net.in.tum.de> | 2013-10-11 17:56:46 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2013-10-11 17:56:46 +0000 |
commit | dec611c964a964a180840a43cffe58e5f988175b (patch) | |
tree | a8aee22afa420ef96e8d906707c29ef424e83010 | |
parent | 586c73cd8c30ed1f04adf6537cde23b7b6c9f3d4 (diff) | |
download | gnunet-dec611c964a964a180840a43cffe58e5f988175b.tar.gz gnunet-dec611c964a964a180840a43cffe58e5f988175b.zip |
- send data ACK only after receiving the channel ACK
-rw-r--r-- | src/mesh/gnunet-service-mesh_channel.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesh/gnunet-service-mesh_channel.c b/src/mesh/gnunet-service-mesh_channel.c index 170ba955e..d3b66c501 100644 --- a/src/mesh/gnunet-service-mesh_channel.c +++ b/src/mesh/gnunet-service-mesh_channel.c | |||
@@ -625,7 +625,7 @@ channel_send_ack (struct MeshChannel *ch, int fwd) | |||
625 | * Channel was ACK'd by remote peer, mark as ready and cancel retransmission. | 625 | * Channel was ACK'd by remote peer, mark as ready and cancel retransmission. |
626 | * | 626 | * |
627 | * @param ch Channel to mark as ready. | 627 | * @param ch Channel to mark as ready. |
628 | * @param fwd Was the CREATE message sent fwd? | 628 | * @param fwd Was the ACK message sent fwd? (dest->root, SYNACK) |
629 | */ | 629 | */ |
630 | static void | 630 | static void |
631 | channel_confirm (struct MeshChannel *ch, int fwd) | 631 | channel_confirm (struct MeshChannel *ch, int fwd) |
@@ -652,6 +652,7 @@ channel_confirm (struct MeshChannel *ch, int fwd) | |||
652 | /* TODO return? */ | 652 | /* TODO return? */ |
653 | } | 653 | } |
654 | } | 654 | } |
655 | GMCH_send_data_ack (ch, fwd); | ||
655 | 656 | ||
656 | /* In case of a FWD ACk (SYNACK) send a BCK ACK (ACK). */ | 657 | /* In case of a FWD ACk (SYNACK) send a BCK ACK (ACK). */ |
657 | if (fwd) | 658 | if (fwd) |
@@ -1551,7 +1552,6 @@ GMCH_handle_create (struct MeshTunnel3 *t, | |||
1551 | 1552 | ||
1552 | GMCH_send_create (ch); | 1553 | GMCH_send_create (ch); |
1553 | channel_send_ack (ch, fwd); | 1554 | channel_send_ack (ch, fwd); |
1554 | GMCH_send_data_ack (ch, fwd); | ||
1555 | 1555 | ||
1556 | if (GNUNET_NO == ch->dest_rel->client_ready) | 1556 | if (GNUNET_NO == ch->dest_rel->client_ready) |
1557 | { | 1557 | { |