[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r36546 - gnunet/src/transport
From: |
gnunet |
Subject: |
[GNUnet-SVN] r36546 - gnunet/src/transport |
Date: |
Sun, 18 Oct 2015 21:21:18 +0200 |
Author: grothoff
Date: 2015-10-18 21:21:18 +0200 (Sun, 18 Oct 2015)
New Revision: 36546
Modified:
gnunet/src/transport/plugin_transport_udp.c
Log:
-log expected transmission time on enqueue, together with queue size
Modified: gnunet/src/transport/plugin_transport_udp.c
===================================================================
--- gnunet/src/transport/plugin_transport_udp.c 2015-10-18 19:16:42 UTC (rev
36545)
+++ gnunet/src/transport/plugin_transport_udp.c 2015-10-18 19:21:18 UTC (rev
36546)
@@ -2022,6 +2022,7 @@
struct UDP_MessageWrapper *udpw;
struct UDPMessage *udp;
char mbuf[udpmlen] GNUNET_ALIGN;
+ struct GNUNET_TIME_Relative latency;
if ( (sizeof(struct IPv6UdpAddress) == s->address->address_length) &&
(NULL == plugin->sockv6) )
@@ -2132,6 +2133,22 @@
frag_ctx);
s->frag_ctx = frag_ctx;
s->last_transmit_time = frag_ctx->next_frag_time;
+ latency = GNUNET_TIME_absolute_get_remaining (s->last_transmit_time);
+ if (latency.rel_value_us > GNUNET_CONSTANTS_LATENCY_WARN.rel_value_us)
+ LOG (GNUNET_ERROR_TYPE_WARNING,
+ "Enqueued fragments will take %s for transmission to %s (queue
size: %u)\n",
+ GNUNET_STRINGS_relative_time_to_string (latency,
+ GNUNET_YES),
+ GNUNET_i2s (&s->target),
+ (unsigned int) s->msgs_in_queue);
+ else
+ LOG (GNUNET_ERROR_TYPE_DEBUG,
+ "Enqueued fragments will take %s for transmission to %s (queue
size: %u)\n",
+ GNUNET_STRINGS_relative_time_to_string (latency,
+ GNUNET_YES),
+ GNUNET_i2s (&s->target),
+ (unsigned int) s->msgs_in_queue);
+
GNUNET_STATISTICS_update (plugin->env->stats,
"# UDP, fragmented messages active",
1,
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r36546 - gnunet/src/transport,
gnunet <=