In the distant past, weasel put in a feature where clients would track number of bytes they receive by what category of directory information, and then you could query the current sums via the dirport ("GET /tor/bytes.txt"). It went into 0.2.1.1-alpha I think (see git commits 01c1a355 and 716558a), but it didn't get a changelog entry or a trac ticket, and also it only works #if defined(INSTRUMENT_DOWNLOADS) || defined(RUNNING_DOXYGEN).
I don't think anybody is using it now, and nobody in the Montreal Meeting wanted to keep it, so it looks like we should simplify by removing it.
I am cc'ing weasel since it was his feature originally, and now he can speak up in favor of its life if he wants.
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Child items ...
Show closed items
Linked items 0
Link issues together to show that they're related.
Learn more.
Turns out there's a control-spec way of requesting this data too:
"dir-usage" A newline-separated list of how many bytes we've served to answer each type of directory request. The format of each line is: Keyword 1*SP Integer 1*SP Integer where the first integer is the number of bytes written, and the second is the number of requests answered.
But that said, it simply returns "Not implemented" unless your Tor has the compile-time option enabled. So I think nobody is going to miss this option.
Also remove the configuration option because it does nothing now.
diff --git a/configure.ac b/configure.acindex d7db0db..b5e4b2b 100644--- a/configure.ac+++ b/configure.ac@@ -33,8 +33,6 @@ CPPFLAGS="$CPPFLAGS -I\${top_srcdir}/src/common" #XXXX020 We should make these enabled or not, before 0.2.0.x-final AC_ARG_ENABLE(openbsd-malloc, AS_HELP_STRING(--enable-openbsd-malloc, [use malloc code from OpenBSD. Linux only]))-AC_ARG_ENABLE(instrument-downloads,- AS_HELP_STRING(--enable-instrument-downloads, [instrument downloads of directory resources etc.])) AC_ARG_ENABLE(static-openssl, AS_HELP_STRING(--enable-static-openssl, [link against a static openssl library. Requires --with-openssl-dir])) AC_ARG_ENABLE(static-libevent,