From e2f25558b9ec2ed70a92026870a46b5b68799ebf Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Thu, 21 Feb 2008 16:11:58 +0000 Subject: 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 --- src/or/connection.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/or/connection.c') 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", -- cgit v1.2.3-54-g00ecf