summaryrefslogtreecommitdiff
path: root/src/transport/transport-testing2.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport/transport-testing2.c')
-rw-r--r--src/transport/transport-testing2.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/transport/transport-testing2.c b/src/transport/transport-testing2.c
index 98cfd5e29..baafff249 100644
--- a/src/transport/transport-testing2.c
+++ b/src/transport/transport-testing2.c
@@ -553,7 +553,10 @@ handle_update_queue_message (void *cls,
tc_queue->mtu = ntohl (msg->mtu);
tc_queue->cs = msg->cs;
tc_queue->priority = ntohl (msg->priority);
- tc_queue->q_len += GNUNET_ntohll (msg->q_len);
+ // Uncomment this for alternativ 1 of backchannel functionality
+ // tc_queue->q_len += GNUNET_ntohll (msg->q_len);
+ // Uncomment this for alternativ 2 of backchannel functionality
+ tc_queue->q_len = GNUNET_ntohll (msg->q_len);
GNUNET_SERVICE_client_continue (client->client);
}
@@ -1130,8 +1133,9 @@ GNUNET_TRANSPORT_TESTING_transport_communicator_send
}
}
GNUNET_assert (NULL != tc_queue);
- if (tc_queue->q_len != GNUNET_TRANSPORT_QUEUE_LENGTH_UNLIMITED)
- tc_queue->q_len--;
+ // Uncomment this for alternativ 1 of backchannel functionality
+ /*if (tc_queue->q_len != GNUNET_TRANSPORT_QUEUE_LENGTH_UNLIMITED)
+ tc_queue->q_len--;*/
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Sending message\n");
inbox_size = sizeof (struct GNUNET_MessageHeader) + payload_size;