]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
indexer: index_mailbox_precache() - Uncork the socket before starting to send progres...
authorMarco Bettini <marco.bettini@open-xchange.com>
Mon, 6 Mar 2023 15:34:03 +0000 (15:34 +0000)
committertimo.sirainen <timo.sirainen@open-xchange.com>
Mon, 22 May 2023 09:21:43 +0000 (09:21 +0000)
Otherwise the client does not receive the updates timely and has
nothing to propagate to the notify_progress() even if progress happened.

src/indexer/master-connection.c

index d3204a95f8c61f79060afe4bd617ca4e016783a5..8a6e1f905b05e21b4b883ccf4f34c9ecb514fed4 100644 (file)
@@ -110,6 +110,9 @@ index_mailbox_precache(struct master_connection *conn, struct mailbox *box)
                                  metadata.precache_fields, NULL);
        mail_search_args_unref(&search_args);
 
+       /* otherwise the client doesn't receive the updates timely */
+       o_stream_uncork(conn->conn.output);
+
        max = status.messages + 1 - seq;
        while (mailbox_search_next(ctx, &mail)) {
                if (first_uid == 0)