diff options
author | Alessio Vanni <vannilla@firemail.cc> | 2020-09-24 22:04:17 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-09-25 08:40:26 +0200 |
commit | 02fb94bd4caa614cfd2327580e91e5e1bc822ebd (patch) | |
tree | 95f7dbbd68fe46798fd877069adf1ee3ff0770c6 | |
parent | 8fd7531e5841c9d9f80f821a3490a05934fee933 (diff) | |
download | gnunet-02fb94bd4caa614cfd2327580e91e5e1bc822ebd.tar.gz gnunet-02fb94bd4caa614cfd2327580e91e5e1bc822ebd.zip |
Disable some diagnostic until TNG is available
-rw-r--r-- | configure.ac | 10 | ||||
-rw-r--r-- | src/transport/gnunet-service-transport.c | 2 |
2 files changed, 12 insertions, 0 deletions
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) | |||
1817 | AM_CONDITIONAL([USE_COVERAGE], [test "x$use_gcov" = "xyes"]) | 1817 | AM_CONDITIONAL([USE_COVERAGE], [test "x$use_gcov" = "xyes"]) |
1818 | 1818 | ||
1819 | 1819 | ||
1820 | # Temporarily disable a specific piece of code until TNG is out. | ||
1821 | AC_ARG_ENABLE([transport-timing-diagnostic], | ||
1822 | [AS_HELP_STRING([--enable-transport-timing-diagnostic], | ||
1823 | [enable logging of transport (not TNG) sending times])], | ||
1824 | [enable_ttd=yes], | ||
1825 | [enable_ttd=no]) | ||
1826 | AS_IF([test "x$enable_ttd" = "xyes"], | ||
1827 | [AC_DEFINE([ENABLE_TTD], [1], [Define if transport (not TNG) should warn about sending times.])]) | ||
1828 | |||
1829 | |||
1820 | # version info | 1830 | # version info |
1821 | # TODO: git blame says this predates our switch to git. | 1831 | # TODO: git blame says this predates our switch to git. |
1822 | # git-svn should be adjusted to simply git, or | 1832 | # 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, | |||
700 | 700 | ||
701 | delay = GNUNET_TIME_absolute_get_duration (stcc->send_time); | 701 | delay = GNUNET_TIME_absolute_get_duration (stcc->send_time); |
702 | addr = GST_neighbour_get_current_address (&stcc->target); | 702 | addr = GST_neighbour_get_current_address (&stcc->target); |
703 | #ifdef ENABLE_TTD | ||
703 | if (delay.rel_value_us > GNUNET_CONSTANTS_LATENCY_WARN.rel_value_us) | 704 | if (delay.rel_value_us > GNUNET_CONSTANTS_LATENCY_WARN.rel_value_us) |
704 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, | 705 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, |
705 | "It took us %s to send %u/%u bytes to %s (%d, %s)\n", | 706 | "It took us %s to send %u/%u bytes to %s (%d, %s)\n", |
@@ -718,6 +719,7 @@ handle_send_transmit_continuation (void *cls, | |||
718 | GNUNET_i2s (&stcc->target), | 719 | GNUNET_i2s (&stcc->target), |
719 | success, | 720 | success, |
720 | (NULL != addr) ? addr->transport_name : "%"); | 721 | (NULL != addr) ? addr->transport_name : "%"); |
722 | #endif | ||
721 | 723 | ||
722 | if (GNUNET_NO == stcc->down) | 724 | if (GNUNET_NO == stcc->down) |
723 | { | 725 | { |