summaryrefslogtreecommitdiff
path: root/src/or/directory.c
diff options
context:
space:
mode:
authorKarsten Loesing <karsten.loesing@gmx.net>2014-05-05 11:21:35 +0200
committerKarsten Loesing <karsten.loesing@gmx.net>2014-05-05 11:21:35 +0200
commit1289474dbd7898826958fc6406d6e444288e7479 (patch)
tree64047a0eda0589fa056b82811365f86c2bc0de7a /src/or/directory.c
parent8a173635bcd85ad7375d996fb39efeaddd8c611d (diff)
downloadtor-1289474dbd7898826958fc6406d6e444288e7479.tar.gz
tor-1289474dbd7898826958fc6406d6e444288e7479.zip
Remove /tor/dbg-stability.txt URL.
The /tor/dbg-stability.txt URL was meant to help debug WFU and MTBF calculations, but nobody was using it. Fixes #11742.
Diffstat (limited to 'src/or/directory.c')
-rw-r--r--src/or/directory.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/or/directory.c b/src/or/directory.c
index 76cb8fa0bc..428fd01be4 100644
--- a/src/or/directory.c
+++ b/src/or/directory.c
@@ -3065,22 +3065,6 @@ directory_handle_command_get(dir_connection_t *conn, const char *headers,
goto done;
}
- if (!strcmp(url,"/tor/dbg-stability.txt")) {
- const char *stability;
- size_t len;
- if (options->BridgeAuthoritativeDir ||
- ! authdir_mode_tests_reachability(options) ||
- ! (stability = rep_hist_get_router_stability_doc(time(NULL)))) {
- write_http_status_line(conn, 404, "Not found.");
- goto done;
- }
-
- len = strlen(stability);
- write_http_response_header(conn, len, 0, 0);
- connection_write_to_buf(stability, len, TO_CONN(conn));
- goto done;
- }
-
#if defined(EXPORTMALLINFO) && defined(HAVE_MALLOC_H) && defined(HAVE_MALLINFO)
#define ADD_MALLINFO_LINE(x) do { \
smartlist_add_asprintf(lines, "%s %d\n", #x, mi.x); \