From ae75344dd5dc64c8d527b4d2d8b9c962e55908aa Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Fri, 16 Apr 2010 15:17:38 +0300 Subject: [PATCH] idle: Do cork/uncork when sending "OK Still here" notification. --HG-- branch : HEAD --- src/imap/cmd-idle.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/imap/cmd-idle.c b/src/imap/cmd-idle.c index e27cf1d3b8..352409c192 100644 --- a/src/imap/cmd-idle.c +++ b/src/imap/cmd-idle.c @@ -105,7 +105,9 @@ static void keepalive_timeout(struct cmd_idle_context *ctx) /* Sending this keeps NATs/stateful firewalls alive. Sending this also catches dead connections. */ + o_stream_cork(ctx->client->output); client_send_line(ctx->client, "* OK Still here"); + o_stream_uncork(ctx->client->output); /* Make sure idling connections don't get disconnected. There are several clients that really want to IDLE forever and there's not much harm in letting them do so. */ -- 2.47.3