dovecot-2.2: lib-master: Show better error message when process_...
dovecot at dovecot.org
dovecot at dovecot.org
Thu Dec 12 18:21:59 EET 2013
details: http://hg.dovecot.org/dovecot-2.2/rev/3535659d6cc2
changeset: 17062:3535659d6cc2
user: Timo Sirainen <tss at iki.fi>
date: Thu Dec 12 18:21:49 2013 +0200
description:
lib-master: Show better error message when process_limit is reached.
diffstat:
src/lib-master/master-auth.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (23 lines):
diff -r 1600e97dabbb -r 3535659d6cc2 src/lib-master/master-auth.c
--- a/src/lib-master/master-auth.c Thu Dec 12 18:08:25 2013 +0200
+++ b/src/lib-master/master-auth.c Thu Dec 12 18:21:49 2013 +0200
@@ -108,14 +108,14 @@
ret = read(conn->fd, conn->buf + conn->buf_pos,
sizeof(conn->buf) - conn->buf_pos);
if (ret <= 0) {
- if (ret < 0) {
+ if (ret == 0 || errno == ECONNRESET) {
+ i_error("read(%s) failed: Remote closed connection "
+ "(service's process_limit reached?)",
+ conn->auth->path, conn->auth->path);
+ } else {
if (errno == EAGAIN)
return;
i_error("read(%s) failed: %m", conn->auth->path);
- } else {
- i_error("read(%s) failed: Remote closed connection "
- "(process_limit reached?)",
- conn->auth->path);
}
master_auth_connection_deinit(&conn);
return;
More information about the dovecot-cvs
mailing list