o_stream_nflush() already flushed the writes to kernel, and Linux should
have sent them after 200ms delay, so this probably doesn't fix anything.
Using uncork+cork is a bit clearer way to indicate that the data really
is wanted to be sent now.
last_io = I_MAX(client->last_input, client->last_output);
if (now - last_io > MAIL_STORAGE_STAYALIVE_SECS) {
o_stream_nsend_str(client->output, "* OK Hang in there..\r\n");
- o_stream_nflush(client->output);
+ /* make sure it doesn't get stuck on the corked stream */
+ o_stream_uncork(client->output);
+ o_stream_cork(client->output);
client->last_output = now;
}
}
string_t *src_uidset;
int ret;
+ i_assert(o_stream_is_corked(client->output));
+
src_uidset = t_str_new(256);
msgset_generator_init(&srcset_ctx, src_uidset);