dovecot-2.0: doveadm-server: Don't disconnect client after each ...
dovecot at dovecot.org
dovecot at dovecot.org
Tue Nov 23 17:30:38 EET 2010
details: http://hg.dovecot.org/dovecot-2.0/rev/8b82ccf48f32
changeset: 12455:8b82ccf48f32
user: Timo Sirainen <tss at iki.fi>
date: Tue Nov 23 15:28:47 2010 +0000
description:
doveadm-server: Don't disconnect client after each command.
diffstat:
src/doveadm/client-connection.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (22 lines):
diff -r 66a523135836 -r 8b82ccf48f32 src/doveadm/client-connection.c
--- a/src/doveadm/client-connection.c Mon Nov 22 19:04:13 2010 +0000
+++ b/src/doveadm/client-connection.c Tue Nov 23 15:28:47 2010 +0000
@@ -143,7 +143,8 @@
/* flush the output and disconnect */
net_set_nonblock(conn->fd, FALSE);
(void)o_stream_flush(conn->output);
- return FALSE;
+ net_set_nonblock(conn->fd, TRUE);
+ return TRUE;
}
static bool
@@ -179,7 +180,7 @@
return;
}
- while ((line = i_stream_read_next_line(conn->input)) != NULL && ret) {
+ while (ret && (line = i_stream_read_next_line(conn->input)) != NULL) {
T_BEGIN {
char **args;
More information about the dovecot-cvs
mailing list