]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
idle: Do cork/uncork when sending "OK Still here" notification.
authorTimo Sirainen <tss@iki.fi>
Fri, 16 Apr 2010 12:17:38 +0000 (15:17 +0300)
committerTimo Sirainen <tss@iki.fi>
Fri, 16 Apr 2010 12:17:38 +0000 (15:17 +0300)
--HG--
branch : HEAD

src/imap/cmd-idle.c

index e27cf1d3b8cfb315600782c62f38e3c4064a11db..352409c1929565921a1311d0d999c80c2d7d4075 100644 (file)
@@ -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. */