]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
dsync: Fixed notifying replicator (-U parameter) if it didn't answer instantly.
authorTimo Sirainen <tss@iki.fi>
Tue, 28 Oct 2014 03:45:59 +0000 (05:45 +0200)
committerTimo Sirainen <tss@iki.fi>
Tue, 28 Oct 2014 03:45:59 +0000 (05:45 +0200)
src/doveadm/doveadm-dsync.c

index 55e95db2f85d54fc831be39ee867fdc108394f4e..5bcc8c5db4453e04bef3c4415778f1a290c2322c 100644 (file)
@@ -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);