Mercurial > dovecot > core-2.2
changeset 377:356fe3713970 HEAD
make io_buffer_send_flush() always removes the cork, even if there's nothing
in output buffer.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 06 Oct 2002 21:27:57 +0300 |
parents | fd1fc4cf11b7 |
children | 225d515edaa1 |
files | src/lib/iobuffer.c |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib/iobuffer.c Sun Oct 06 19:08:27 2002 +0300 +++ b/src/lib/iobuffer.c Sun Oct 06 21:27:57 2002 +0300 @@ -637,6 +637,12 @@ if (buf->skip != buf->pos) io_buffer_send_blocking(buf, NULL, 0); + + if (buf->corked) { + /* remove cork */ + net_set_cork(buf->fd, FALSE); + buf->corked = FALSE; + } } void io_buffer_send_flush_callback(IOBuffer *buf, IOBufferFlushFunc func,