diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-10-13 19:42:36 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-10-13 19:42:36 +0000 |
commit | 149f57bdef9e12b1494a34a6356c54b92c64866c (patch) | |
tree | df51b912955d7b84dafbfe92b33214d04dd7b580 /src | |
parent | afd8b650eea2f78beaa01093edbf0de25c711d38 (diff) | |
download | tor-149f57bdef9e12b1494a34a6356c54b92c64866c.tar tor-149f57bdef9e12b1494a34a6356c54b92c64866c.tar.gz |
answer question about rep_hist_note_connect_failed
svn:r2464
Diffstat (limited to 'src')
-rw-r--r-- | src/or/connection.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/connection.c b/src/or/connection.c index f72c1ee64..28c8a7a51 100644 --- a/src/or/connection.c +++ b/src/or/connection.c @@ -195,6 +195,10 @@ void connection_about_to_close_connection(connection_t *conn) /* XXX Nick: this still isn't right, because it might be * dying even though we didn't initiate the connect. Can * you look at this more? -RD XXXX008 -NM*/ + /* XXX We only set conn->nickname when we initiate the connection, or + * when the handshake is complete; so conn->nickname is a good test + * for "we initiated the connection", right? -NM */ + */ if(conn->nickname) rep_hist_note_connect_failed(conn->identity_digest, time(NULL)); } else if (0) { // XXX reason == CLOSE_REASON_UNUSED_OR_CONN) { |