diff options
author | Bart Polot <bart@net.in.tum.de> | 2013-11-27 04:44:27 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2013-11-27 04:44:27 +0000 |
commit | 4da6aff43125e2550cb79c24847ec46238a8967d (patch) | |
tree | 9a9053175eedd318617f3a043cb3ce84cd85f142 | |
parent | 3b997bba84a8a11ae5b85c1f23e5f94a1139f7e4 (diff) | |
download | gnunet-4da6aff43125e2550cb79c24847ec46238a8967d.tar.gz gnunet-4da6aff43125e2550cb79c24847ec46238a8967d.zip |
- dont update tunnel c-state on data
-rw-r--r-- | src/mesh/gnunet-service-mesh_tunnel.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/mesh/gnunet-service-mesh_tunnel.c b/src/mesh/gnunet-service-mesh_tunnel.c index baf39dfd1..0d589acf4 100644 --- a/src/mesh/gnunet-service-mesh_tunnel.c +++ b/src/mesh/gnunet-service-mesh_tunnel.c | |||
@@ -628,6 +628,7 @@ send_queued_data (struct MeshTunnel3 *t) | |||
628 | 628 | ||
629 | room = GMT_get_connections_buffer (t); | 629 | room = GMT_get_connections_buffer (t); |
630 | LOG (GNUNET_ERROR_TYPE_DEBUG, " buffer space: %u\n", room); | 630 | LOG (GNUNET_ERROR_TYPE_DEBUG, " buffer space: %u\n", room); |
631 | LOG (GNUNET_ERROR_TYPE_DEBUG, " tq head: %p\n", t->tq_head); | ||
631 | for (tq = t->tq_head; NULL != tq && room > 0; tq = next) | 632 | for (tq = t->tq_head; NULL != tq && room > 0; tq = next) |
632 | { | 633 | { |
633 | LOG (GNUNET_ERROR_TYPE_DEBUG, " data on channel %s\n", GMCH_2s (tq->ch)); | 634 | LOG (GNUNET_ERROR_TYPE_DEBUG, " data on channel %s\n", GMCH_2s (tq->ch)); |
@@ -964,7 +965,6 @@ handle_data (struct MeshTunnel3 *t, | |||
964 | int fwd) | 965 | int fwd) |
965 | { | 966 | { |
966 | struct MeshChannel *ch; | 967 | struct MeshChannel *ch; |
967 | uint16_t type; | ||
968 | size_t size; | 968 | size_t size; |
969 | 969 | ||
970 | /* Check size */ | 970 | /* Check size */ |
@@ -976,9 +976,6 @@ handle_data (struct MeshTunnel3 *t, | |||
976 | GNUNET_break (0); | 976 | GNUNET_break (0); |
977 | return; | 977 | return; |
978 | } | 978 | } |
979 | type = ntohs (msg->header.type); | ||
980 | LOG (GNUNET_ERROR_TYPE_DEBUG, "got a %s message\n", | ||
981 | GNUNET_MESH_DEBUG_M2S (type)); | ||
982 | LOG (GNUNET_ERROR_TYPE_DEBUG, " payload of type %s\n", | 979 | LOG (GNUNET_ERROR_TYPE_DEBUG, " payload of type %s\n", |
983 | GNUNET_MESH_DEBUG_M2S (ntohs (msg[1].header.type))); | 980 | GNUNET_MESH_DEBUG_M2S (ntohs (msg[1].header.type))); |
984 | 981 | ||
@@ -993,7 +990,6 @@ handle_data (struct MeshTunnel3 *t, | |||
993 | return; | 990 | return; |
994 | } | 991 | } |
995 | 992 | ||
996 | GMT_change_cstate (t, MESH_TUNNEL3_READY); | ||
997 | GMCH_handle_data (ch, msg, fwd); | 993 | GMCH_handle_data (ch, msg, fwd); |
998 | } | 994 | } |
999 | 995 | ||