From: Marco Bettini Date: Mon, 6 Mar 2023 15:34:03 +0000 (+0000) Subject: indexer: index_mailbox_precache() - Uncork the socket before starting to send progres... X-Git-Tag: 2.4.0~2735 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4ec6b6acbe5dac0a319dd215924e56276e01dc27;p=thirdparty%2Fdovecot%2Fcore.git 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. --- 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)