Commit 1ec57e4d authored by Wayne Davison's avatar Wayne Davison

Fix check for an empty output buffer and limit to flist_eof.

parent 20caffd2
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment