Mercurial > dovecot > core-2.2
changeset 11159:ffc28ea81538 HEAD
idle: Do cork/uncork when sending "OK Still here" notification.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Fri, 16 Apr 2010 15:17:38 +0300 |
parents | b3947e64546a |
children | 91ef3309968a |
files | src/imap/cmd-idle.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/imap/cmd-idle.c Fri Apr 16 14:42:58 2010 +0300 +++ b/src/imap/cmd-idle.c Fri Apr 16 15:17:38 2010 +0300 @@ -105,7 +105,9 @@ /* 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. */