dovecot-2.1: lib-auth: Don't log the "auth connection closed" wa...
dovecot at dovecot.org
dovecot at dovecot.org
Fri Jan 20 16:40:11 EET 2012
details: http://hg.dovecot.org/dovecot-2.1/rev/569e1fd8d97e
changeset: 13960:569e1fd8d97e
user: Timo Sirainen <tss at iki.fi>
date: Fri Jan 20 16:40:06 2012 +0200
description:
lib-auth: Don't log the "auth connection closed" warning if there were 0 non-aborted requests.
diffstat:
src/lib-auth/auth-server-connection.c | 13 +++++++------
1 files changed, 7 insertions(+), 6 deletions(-)
diffs (25 lines):
diff -r 3dae51fd4565 -r 569e1fd8d97e src/lib-auth/auth-server-connection.c
--- a/src/lib-auth/auth-server-connection.c Fri Jan 20 16:37:10 2012 +0200
+++ b/src/lib-auth/auth-server-connection.c Fri Jan 20 16:40:06 2012 +0200
@@ -336,14 +336,15 @@
AUTH_REQUEST_STATUS_INTERNAL_FAIL,
temp_failure_args);
}
-
- i_warning("Auth connection closed with %u pending requests "
- "(max %u secs, pid=%s, %s)", request_count,
- (unsigned int)(ioloop_time - oldest),
- my_pid, disconnect_reason);
-
hash_table_iterate_deinit(&iter);
hash_table_clear(conn->requests, FALSE);
+
+ if (request_count > 0) {
+ i_warning("Auth connection closed with %u pending requests "
+ "(max %u secs, pid=%s, %s)", request_count,
+ (unsigned int)(ioloop_time - oldest),
+ my_pid, disconnect_reason);
+ }
}
void auth_server_connection_disconnect(struct auth_server_connection *conn,
More information about the dovecot-cvs
mailing list