From 4ec6b6acbe5dac0a319dd215924e56276e01dc27 Mon Sep 17 00:00:00 2001 From: Marco Bettini Date: Mon, 6 Mar 2023 15:34:03 +0000 Subject: [PATCH] indexer: index_mailbox_precache() - Uncork the socket before starting to send progress updates to the client 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 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/indexer/master-connection.c b/src/indexer/master-connection.c index d3204a95f8..8a6e1f905b 100644 --- a/src/indexer/master-connection.c +++ b/src/indexer/master-connection.c @@ -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) -- 2.47.3