diff options
author | David Goulet <dgoulet@torproject.org> | 2018-02-06 12:51:43 -0500 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2018-02-06 12:56:36 -0500 |
commit | 93ebcc2b8f8f22f2628cf74cc92674c8fbeb7b9a (patch) | |
tree | 52373055d69e8f78e3797420856171858ecf5571 /src/or/connection_or.c | |
parent | 199bc37290d60b155bdd4c82c5f2d4b9096bd496 (diff) | |
download | tor-93ebcc2b8f8f22f2628cf74cc92674c8fbeb7b9a.tar.gz tor-93ebcc2b8f8f22f2628cf74cc92674c8fbeb7b9a.zip |
rephist: Stop tracking relay connection status
Remove a series of connection counters that were only used when dumping the
rephist statistics with SIGUSR1 signal.
This reduces the or_history_t structure size.
Closes #25163
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/or/connection_or.c')
-rw-r--r-- | src/or/connection_or.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/or/connection_or.c b/src/or/connection_or.c index 455bb66cb3..272a086a32 100644 --- a/src/or/connection_or.c +++ b/src/or/connection_or.c @@ -705,7 +705,6 @@ connection_or_finished_connecting(or_connection_t *or_conn) void connection_or_about_to_close(or_connection_t *or_conn) { - time_t now = time(NULL); connection_t *conn = TO_CONN(or_conn); /* Tell the controlling channel we're closed */ @@ -725,7 +724,6 @@ connection_or_about_to_close(or_connection_t *or_conn) if (connection_or_nonopen_was_started_here(or_conn)) { const or_options_t *options = get_options(); connection_or_note_state_when_broken(or_conn); - rep_hist_note_connect_failed(or_conn->identity_digest, now); /* Tell the new guard API about the channel failure */ entry_guard_chan_failed(TLS_CHAN_TO_BASE(or_conn->chan)); if (conn->state >= OR_CONN_STATE_TLS_HANDSHAKING) { @@ -741,11 +739,9 @@ connection_or_about_to_close(or_connection_t *or_conn) } else if (conn->hold_open_until_flushed) { /* We only set hold_open_until_flushed when we're intentionally * closing a connection. */ - rep_hist_note_disconnect(or_conn->identity_digest, now); control_event_or_conn_status(or_conn, OR_CONN_EVENT_CLOSED, tls_error_to_orconn_end_reason(or_conn->tls_error)); } else if (!tor_digest_is_zero(or_conn->identity_digest)) { - rep_hist_note_connection_died(or_conn->identity_digest, now); control_event_or_conn_status(or_conn, OR_CONN_EVENT_CLOSED, tls_error_to_orconn_end_reason(or_conn->tls_error)); } |