dovecot-2.0: idle: Do cork/uncork when sending "OK Still here" n...
dovecot at dovecot.org
dovecot at dovecot.org
Fri Apr 16 15:17:41 EEST 2010
details: http://hg.dovecot.org/dovecot-2.0/rev/ffc28ea81538
changeset: 11159:ffc28ea81538
user: Timo Sirainen <tss at iki.fi>
date: Fri Apr 16 15:17:38 2010 +0300
description:
idle: Do cork/uncork when sending "OK Still here" notification.
diffstat:
src/imap/cmd-idle.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diffs (13 lines):
diff -r b3947e64546a -r ffc28ea81538 src/imap/cmd-idle.c
--- 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. */
More information about the dovecot-cvs
mailing list