summaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-09-19 08:24:49 -0400
committerNick Mathewson <nickm@torproject.org>2017-09-19 08:24:49 -0400
commit84d587bed87f26c22f47ca4c3fdd6b6ab4e232db (patch)
tree5278e976d7324564b37a7bf0f92a38f8c6153713 /src/or
parente77ece3b31e9e16d576f28e6f19b3c74599b2b1c (diff)
parent429d88ad6a9c52de3cdf8e6a3699e20650b59faa (diff)
downloadtor-84d587bed87f26c22f47ca4c3fdd6b6ab4e232db.tar.gz
tor-84d587bed87f26c22f47ca4c3fdd6b6ab4e232db.zip
Merge remote-tracking branch 'teor/minor-comments'
Diffstat (limited to 'src/or')
-rw-r--r--src/or/connection.c2
-rw-r--r--src/or/connection_or.c7
2 files changed, 5 insertions, 4 deletions
diff --git a/src/or/connection.c b/src/or/connection.c
index dd5cb3480d..632a833652 100644
--- a/src/or/connection.c
+++ b/src/or/connection.c
@@ -812,7 +812,7 @@ connection_mark_for_close_(connection_t *conn, int line, const char *file)
* CONN_TYPE_OR checks; this should be called when you either are sure that
* if this is an or_connection_t the controlling channel has been notified
* (e.g. with connection_or_notify_error()), or you actually are the
- * connection_or_close_for_error() or connection_or_close_normally function.
+ * connection_or_close_for_error() or connection_or_close_normally() function.
* For all other cases, use connection_mark_and_flush() instead, which
* checks for or_connection_t properly, instead. See below.
*/
diff --git a/src/or/connection_or.c b/src/or/connection_or.c
index e4fda7ce78..9e34063609 100644
--- a/src/or/connection_or.c
+++ b/src/or/connection_or.c
@@ -1743,8 +1743,9 @@ connection_or_client_learned_peer_id(or_connection_t *conn,
return 0;
}
-/** Return when a client used this, for connection.c, since client_used
- * is now one of the timestamps of channel_t */
+/** Return when we last used this channel for client activity (origin
+ * circuits). This is called from connection.c, since client_used is now one
+ * of the timestamps in channel_t */
time_t
connection_or_client_used(or_connection_t *conn)
@@ -1758,7 +1759,7 @@ connection_or_client_used(or_connection_t *conn)
/** The v1/v2 TLS handshake is finished.
*
- * Make sure we are happy with the person we just handshaked with.
+ * Make sure we are happy with the peer we just handshaked with.
*
* If they initiated the connection, make sure they're not already connected,
* then initialize conn from the information in router.