diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-02-21 16:11:58 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-02-21 16:11:58 +0000 |
commit | e2f25558b9ec2ed70a92026870a46b5b68799ebf (patch) | |
tree | 3d45bcced8c42a9fcaa8c1022fc77bfa3b7c0a6c /src/or/connection.c | |
parent | e18ee2a2abc9ee5dca56e1744babfb7d5733d32d (diff) | |
download | tor-e2f25558b9ec2ed70a92026870a46b5b68799ebf.tar.gz tor-e2f25558b9ec2ed70a92026870a46b5b68799ebf.zip |
r14362@31-33-219: nickm | 2008-02-21 11:01:10 -0500
Change some of our log messages related to closed TLS connections in order to better reflect reality.
svn:r13657
Diffstat (limited to 'src/or/connection.c')
-rw-r--r-- | src/or/connection.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/or/connection.c b/src/or/connection.c index 2c3cbab134..891c81a0e7 100644 --- a/src/or/connection.c +++ b/src/or/connection.c @@ -1945,12 +1945,14 @@ connection_read_to_buf(connection_t *conn, int *max_to_read) switch (result) { case TOR_TLS_CLOSE: - log_info(LD_NET,"TLS connection closed on read. Closing. " + case TOR_TLS_ERROR_IO: + log_info(LD_NET,"TLS connection closed %son read. Closing. " "(Nickname %s, address %s", + result == TOR_TLS_CLOSE ? "cleanly " : "", or_conn->nickname ? or_conn->nickname : "not set", conn->address); return result; - CASE_TOR_TLS_ERROR_ANY: + CASE_TOR_TLS_ERROR_ANY_NONIO: log_info(LD_NET,"tls error [%s]. breaking (nickname %s, address %s).", tor_tls_err_to_string(result), or_conn->nickname ? or_conn->nickname : "not set", |