From: Timo Sirainen Date: Tue, 28 Oct 2014 03:45:59 +0000 (+0200) Subject: dsync: Fixed notifying replicator (-U parameter) if it didn't answer instantly. X-Git-Tag: 2.2.16.rc1~271 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cb091e2f74c4e13840cc4dcdabea31142b6352e8;p=thirdparty%2Fdovecot%2Fcore.git dsync: Fixed notifying replicator (-U parameter) if it didn't answer instantly. --- diff --git a/src/doveadm/doveadm-dsync.c b/src/doveadm/doveadm-dsync.c index 55e95db2f8..5bcc8c5db4 100644 --- a/src/doveadm/doveadm-dsync.c +++ b/src/doveadm/doveadm-dsync.c @@ -500,6 +500,8 @@ dsync_replicator_notify(struct dsync_cmd_context *ctx, 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);