[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] branch master updated: Disable some diagnostic until TNG is ava
From: |
gnunet |
Subject: |
[gnunet] branch master updated: Disable some diagnostic until TNG is available |
Date: |
Fri, 25 Sep 2020 08:47:13 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new 02fb94bd4 Disable some diagnostic until TNG is available
02fb94bd4 is described below
commit 02fb94bd4caa614cfd2327580e91e5e1bc822ebd
Author: Alessio Vanni <vannilla@firemail.cc>
AuthorDate: Thu Sep 24 22:04:17 2020 +0200
Disable some diagnostic until TNG is available
---
configure.ac | 10 ++++++++++
src/transport/gnunet-service-transport.c | 2 ++
2 files changed, 12 insertions(+)
diff --git a/configure.ac b/configure.ac
index 3cf7e6cb6..946b6f58a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1817,6 +1817,16 @@ AC_MSG_RESULT($use_gcov)
AM_CONDITIONAL([USE_COVERAGE], [test "x$use_gcov" = "xyes"])
+# Temporarily disable a specific piece of code until TNG is out.
+AC_ARG_ENABLE([transport-timing-diagnostic],
+ [AS_HELP_STRING([--enable-transport-timing-diagnostic],
+ [enable logging of transport (not TNG) sending
times])],
+ [enable_ttd=yes],
+ [enable_ttd=no])
+AS_IF([test "x$enable_ttd" = "xyes"],
+ [AC_DEFINE([ENABLE_TTD], [1], [Define if transport (not TNG) should warn
about sending times.])])
+
+
# version info
# TODO: git blame says this predates our switch to git.
# git-svn should be adjusted to simply git, or
diff --git a/src/transport/gnunet-service-transport.c
b/src/transport/gnunet-service-transport.c
index 207c17f2f..92e37a91c 100644
--- a/src/transport/gnunet-service-transport.c
+++ b/src/transport/gnunet-service-transport.c
@@ -700,6 +700,7 @@ handle_send_transmit_continuation (void *cls,
delay = GNUNET_TIME_absolute_get_duration (stcc->send_time);
addr = GST_neighbour_get_current_address (&stcc->target);
+#ifdef ENABLE_TTD
if (delay.rel_value_us > GNUNET_CONSTANTS_LATENCY_WARN.rel_value_us)
GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
"It took us %s to send %u/%u bytes to %s (%d, %s)\n",
@@ -718,6 +719,7 @@ handle_send_transmit_continuation (void *cls,
GNUNET_i2s (&stcc->target),
success,
(NULL != addr) ? addr->transport_name : "%");
+#endif
if (GNUNET_NO == stcc->down)
{
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnunet] branch master updated: Disable some diagnostic until TNG is available,
gnunet <=