diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2012-10-23 15:11:42 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2012-10-23 15:11:42 +0000 |
commit | bc0974c434084201a2bc97f4fe903cc7320733ed (patch) | |
tree | 0bbcefe5a03aab6ac0e8327e45d31ad98439787a /src/transport/plugin_transport_udp.c | |
parent | 261db3c624d0c1ca9f49964cc882b4b0df3b4f14 (diff) | |
download | gnunet-bc0974c434084201a2bc97f4fe903cc7320733ed.tar.gz gnunet-bc0974c434084201a2bc97f4fe903cc7320733ed.zip |
timeout stats
Diffstat (limited to 'src/transport/plugin_transport_udp.c')
-rw-r--r-- | src/transport/plugin_transport_udp.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/transport/plugin_transport_udp.c b/src/transport/plugin_transport_udp.c index 0b858a51f..41eab290b 100644 --- a/src/transport/plugin_transport_udp.c +++ b/src/transport/plugin_transport_udp.c | |||
@@ -2197,6 +2197,12 @@ remove_timeout_messages_and_select (struct UDP_MessageWrapper *head, | |||
2197 | GNUNET_STATISTICS_update (plugin->env->stats, | 2197 | GNUNET_STATISTICS_update (plugin->env->stats, |
2198 | "# UDP, total, messages, sent, timeout", | 2198 | "# UDP, total, messages, sent, timeout", |
2199 | 1, GNUNET_NO); | 2199 | 1, GNUNET_NO); |
2200 | GNUNET_STATISTICS_update (plugin->env->stats, | ||
2201 | "# UDP, unfragmented msgs, messages, sent, timeout", | ||
2202 | 1, GNUNET_NO); | ||
2203 | GNUNET_STATISTICS_update (plugin->env->stats, | ||
2204 | "# UDP, unfragmented msgs, bytes, sent, timeout", | ||
2205 | udpw->payload_size, GNUNET_NO); | ||
2200 | /* Not fragmented message */ | 2206 | /* Not fragmented message */ |
2201 | LOG (GNUNET_ERROR_TYPE_DEBUG, | 2207 | LOG (GNUNET_ERROR_TYPE_DEBUG, |
2202 | "Message for peer `%s' with size %u timed out\n", | 2208 | "Message for peer `%s' with size %u timed out\n", |
@@ -2219,6 +2225,13 @@ remove_timeout_messages_and_select (struct UDP_MessageWrapper *head, | |||
2219 | "Fragment for message for peer `%s' with size %u timed out\n", | 2225 | "Fragment for message for peer `%s' with size %u timed out\n", |
2220 | GNUNET_i2s(&udpw->session->target), udpw->frag_ctx->payload_size); | 2226 | GNUNET_i2s(&udpw->session->target), udpw->frag_ctx->payload_size); |
2221 | 2227 | ||
2228 | |||
2229 | GNUNET_STATISTICS_update (plugin->env->stats, | ||
2230 | "# UDP, fragmented msgs, messages, sent, timeout", | ||
2231 | 1, GNUNET_NO); | ||
2232 | GNUNET_STATISTICS_update (plugin->env->stats, | ||
2233 | "# UDP, fragmented msgs, bytes, sent, timeout", | ||
2234 | udpw->frag_ctx->payload_size, GNUNET_NO); | ||
2222 | /* Remove fragmented message due to timeout */ | 2235 | /* Remove fragmented message due to timeout */ |
2223 | fragmented_message_done (udpw->frag_ctx, GNUNET_SYSERR); | 2236 | fragmented_message_done (udpw->frag_ctx, GNUNET_SYSERR); |
2224 | break; | 2237 | break; |