changeset 18035:8a91b47d5a46

dsync: Fixed notifying replicator (-U parameter) if it didn't answer instantly.
author Timo Sirainen <tss@iki.fi>
date Tue, 28 Oct 2014 05:45:59 +0200
parents 39e2455a5e2d
children f08b79e8d22e
files src/doveadm/doveadm-dsync.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/doveadm/doveadm-dsync.c	Mon Oct 27 23:29:39 2014 +0200
+++ b/src/doveadm/doveadm-dsync.c	Tue Oct 28 05:45:59 2014 +0200
@@ -500,6 +500,8 @@
 		i_error("net_connect_unix(%s) failed: %m", path);
 		return;
 	}
+	fd_set_nonblock(fd, FALSE);
+
 	str = t_str_new(128);
 	str_append(str, REPLICATOR_HANDSHAKE"NOTIFY\t");
 	str_append_tabescaped(str, ctx->ctx.cur_mail_user->username);