diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-10-27 14:18:14 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-10-27 14:18:14 +0000 |
commit | 2493fd14fd65ac7be857cf9c7fd4d189cb91cbaf (patch) | |
tree | c32d6f950e6e0cec4be41801093b4ddd2c9b16ae /src/transport/gnunet-service-transport_clients.c | |
parent | 8d9e724fe53ec6ddb0a02c2c981ea8ff1379f727 (diff) | |
download | gnunet-2493fd14fd65ac7be857cf9c7fd4d189cb91cbaf.tar.gz gnunet-2493fd14fd65ac7be857cf9c7fd4d189cb91cbaf.zip |
-extra logging for #4025
Diffstat (limited to 'src/transport/gnunet-service-transport_clients.c')
-rw-r--r-- | src/transport/gnunet-service-transport_clients.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/transport/gnunet-service-transport_clients.c b/src/transport/gnunet-service-transport_clients.c index 538dd15ea..3a7f10337 100644 --- a/src/transport/gnunet-service-transport_clients.c +++ b/src/transport/gnunet-service-transport_clients.c | |||
@@ -693,6 +693,11 @@ struct SendTransmitContinuationContext | |||
693 | * At what time did we receive the message? | 693 | * At what time did we receive the message? |
694 | */ | 694 | */ |
695 | struct GNUNET_TIME_Absolute send_time; | 695 | struct GNUNET_TIME_Absolute send_time; |
696 | |||
697 | /** | ||
698 | * Unique ID, for logging. | ||
699 | */ | ||
700 | unsigned long long uuid; | ||
696 | }; | 701 | }; |
697 | 702 | ||
698 | 703 | ||
@@ -742,6 +747,9 @@ handle_send_transmit_continuation (void *cls, | |||
742 | if (GST_neighbours_test_connected (&stcc->target)) | 747 | if (GST_neighbours_test_connected (&stcc->target)) |
743 | { | 748 | { |
744 | /* Only send confirmation if we are still connected */ | 749 | /* Only send confirmation if we are still connected */ |
750 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | ||
751 | "Sending SEND_OK for transmission request %llu\n", | ||
752 | stcc->uuid); | ||
745 | send_ok_msg.header.size = htons (sizeof (send_ok_msg)); | 753 | send_ok_msg.header.size = htons (sizeof (send_ok_msg)); |
746 | send_ok_msg.header.type = htons (GNUNET_MESSAGE_TYPE_TRANSPORT_SEND_OK); | 754 | send_ok_msg.header.type = htons (GNUNET_MESSAGE_TYPE_TRANSPORT_SEND_OK); |
747 | send_ok_msg.bytes_msg = htonl (bytes_payload); | 755 | send_ok_msg.bytes_msg = htonl (bytes_payload); |
@@ -769,6 +777,7 @@ clients_handle_send (void *cls, | |||
769 | struct GNUNET_SERVER_Client *client, | 777 | struct GNUNET_SERVER_Client *client, |
770 | const struct GNUNET_MessageHeader *message) | 778 | const struct GNUNET_MessageHeader *message) |
771 | { | 779 | { |
780 | static unsigned long long uuid_gen; | ||
772 | const struct OutboundMessage *obm; | 781 | const struct OutboundMessage *obm; |
773 | const struct GNUNET_MessageHeader *obmm; | 782 | const struct GNUNET_MessageHeader *obmm; |
774 | struct SendTransmitContinuationContext *stcc; | 783 | struct SendTransmitContinuationContext *stcc; |
@@ -821,7 +830,8 @@ clients_handle_send (void *cls, | |||
821 | return; | 830 | return; |
822 | } | 831 | } |
823 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 832 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
824 | "Received SEND request for `%s' and first message of type %u and total size %u\n", | 833 | "Received SEND request %llu for `%s' and first message of type %u and total size %u\n", |
834 | uuid_gen, | ||
825 | GNUNET_i2s (&obm->peer), | 835 | GNUNET_i2s (&obm->peer), |
826 | ntohs (obmm->type), | 836 | ntohs (obmm->type), |
827 | msize); | 837 | msize); |
@@ -831,6 +841,7 @@ clients_handle_send (void *cls, | |||
831 | stcc->target = obm->peer; | 841 | stcc->target = obm->peer; |
832 | stcc->client = client; | 842 | stcc->client = client; |
833 | stcc->send_time = GNUNET_TIME_absolute_get (); | 843 | stcc->send_time = GNUNET_TIME_absolute_get (); |
844 | stcc->uuid = uuid_gen++; | ||
834 | GNUNET_SERVER_client_keep (client); | 845 | GNUNET_SERVER_client_keep (client); |
835 | GST_manipulation_send (&obm->peer, | 846 | GST_manipulation_send (&obm->peer, |
836 | obmm, | 847 | obmm, |