dovecot-2.2: director: If request times out, log more information.
dovecot at dovecot.org
dovecot at dovecot.org
Sun May 20 03:26:27 EEST 2012
details: http://hg.dovecot.org/dovecot-2.2/rev/1b37d6422905
changeset: 14325:1b37d6422905
user: Timo Sirainen <tss at iki.fi>
date: Mon Mar 12 13:15:26 2012 +0200
description:
director: If request times out, log more information.
diffstat:
src/director/director-request.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diffs (26 lines):
diff -r e75446fc828c -r 1b37d6422905 src/director/director-request.c
--- a/src/director/director-request.c Mon Mar 12 12:59:54 2012 +0200
+++ b/src/director/director-request.c Mon Mar 12 13:15:26 2012 +0200
@@ -26,6 +26,7 @@
director_request_get_timeout_error(struct director_request *request)
{
string_t *str = t_str_new(128);
+ struct user *user;
unsigned int secs;
str_printfa(str, "Timeout - queued for %u secs (",
@@ -40,6 +41,14 @@
else
str_printfa(str, "Ring not synced for %u secs", secs);
}
+
+ user = user_directory_lookup(request->dir->users,
+ request->username_hash);
+ if (user != NULL) {
+ if (user->weak)
+ str_append(str, ", weak user");
+ str_printfa(str, ", ts=%u", user->timestamp);
+ }
str_append_c(str, ')');
return str_c(str);
}
More information about the dovecot-cvs
mailing list