From 1ec57e4ddcea665d04e780041fb0d1d8885bfed3 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Sat, 17 Oct 2009 09:09:27 -0700 Subject: [PATCH] Fix check for an empty output buffer and limit to flist_eof. --- io.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/io.c b/io.c index 7c50d5af..610a802b 100644 --- a/io.c +++ b/io.c @@ -1197,7 +1197,8 @@ void io_end_buffering_out(BOOL free_buffers) void maybe_flush_socket(int important) { - if (iobuf.out.buf && iobuf.out.len && (important || time(NULL) - last_io_out >= 5)) + if (flist_eof && iobuf.out.buf && iobuf.out.len > iobuf.out_empty_len + && (important || time(NULL) - last_io_out >= 5)) io_flush(NORMAL_FLUSH); } -- 2.34.1