Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Allow %VAR% environment references in daemon-config parameter values.
[rsync/rsync.git]
/
io.c
diff --git
a/io.c
b/io.c
index
7c50d5a
..
610a802
100644
(file)
--- a/
io.c
+++ b/
io.c
@@
-1197,7
+1197,8
@@
void io_end_buffering_out(BOOL free_buffers)
void maybe_flush_socket(int important)
{
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);
}
io_flush(NORMAL_FLUSH);
}