summaryrefslogtreecommitdiff
path: root/src/or/connection_edge.c
diff options
context:
space:
mode:
authorKarsten Loesing <karsten.loesing@gmx.net>2009-06-24 19:51:45 +0200
committerNick Mathewson <nickm@torproject.org>2009-07-02 12:37:05 -0400
commit4d6af73db88e409764f43fc6cdaa432d667becf3 (patch)
treede8f80573fc939975f8e6e8bb0d6becf39621045 /src/or/connection_edge.c
parent078c34e28e02bcb3a9fd28f3fee3c5e956ec8e1f (diff)
downloadtor-4d6af73db88e409764f43fc6cdaa432d667becf3.tar.gz
tor-4d6af73db88e409764f43fc6cdaa432d667becf3.zip
If configured, write per-port exit statistics to disk periodically.
[Original patch series from Karsten, revised and squashed by Nick]
Diffstat (limited to 'src/or/connection_edge.c')
-rw-r--r--src/or/connection_edge.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c
index 3cd00e2828..dd44190c71 100644
--- a/src/or/connection_edge.c
+++ b/src/or/connection_edge.c
@@ -333,6 +333,8 @@ connection_edge_finished_connecting(edge_connection_t *edge_conn)
escaped_safe_str(conn->address),conn->port,
safe_str(fmt_addr(&conn->addr)));
+ rep_hist_note_exit_stream_opened(conn->port, approx_time());
+
conn->state = EXIT_CONN_STATE_OPEN;
connection_watch_events(conn, READ_EVENT); /* stop writing, keep reading */
if (connection_wants_to_flush(conn)) /* in case there are any queued relay