diff options
author | Karsten Loesing <karsten.loesing@gmx.net> | 2009-10-28 07:47:47 +0100 |
---|---|---|
committer | Karsten Loesing <karsten.loesing@gmx.net> | 2009-12-17 09:15:06 +0100 |
commit | d38268a8c7328a9f95beb76442f159bf27211271 (patch) | |
tree | aed61cda6451c2504d05709b7cbe60bba41d5a84 /src/or/directory.c | |
parent | 62c2a5a8838ac8eb97ab967e10e7a1e99d761d94 (diff) | |
download | tor-d38268a8c7328a9f95beb76442f159bf27211271.tar.gz tor-d38268a8c7328a9f95beb76442f159bf27211271.zip |
Remove v0 hidden service statistics code.
The HSAuthorityRecordStats option was used to track statistics of overall
hidden service usage on the version 0 hidden service authorities. With the
version 2 hidden service directories being deployed and version 0
descriptors being phased out, these statistics are not as useful anymore.
Goodbye, you fine piece of software; my first major code contribution to
Tor.
Diffstat (limited to 'src/or/directory.c')
-rw-r--r-- | src/or/directory.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/or/directory.c b/src/or/directory.c index 06a2cffd81..282cd98165 100644 --- a/src/or/directory.c +++ b/src/or/directory.c @@ -2950,18 +2950,9 @@ directory_handle_command_get(dir_connection_t *conn, const char *headers, note_request("/tor/rendezvous?/", desc_len); /* need to send descp separately, because it may include NULs */ connection_write_to_buf(descp, desc_len, TO_CONN(conn)); - /* report successful fetch to statistic */ - if (options->HSAuthorityRecordStats) { - hs_usage_note_fetch_total(query, time(NULL)); - hs_usage_note_fetch_successful(query, time(NULL)); - } break; case 0: /* well-formed but not present */ write_http_status_line(conn, 404, "Not found"); - /* report (unsuccessful) fetch to statistic */ - if (options->HSAuthorityRecordStats) { - hs_usage_note_fetch_total(query, time(NULL)); - } break; case -1: /* not well-formed */ write_http_status_line(conn, 400, "Bad request"); |