Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
20caffd
)
Fix check for an empty output buffer and limit to flist_eof.
author
Wayne Davison
<wayned@samba.org>
Sat, 17 Oct 2009 16:09:27 +0000
(09:09 -0700)
committer
Wayne Davison
<wayned@samba.org>
Sat, 17 Oct 2009 18:06:20 +0000
(11:06 -0700)
io.c
patch
|
blob
|
blame
|
history
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)
{
- 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);
}