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
Have the sender use dead time to pad out the file list.
[rsync/rsync.git]
/
sender.c
diff --git
a/sender.c
b/sender.c
index
cc2c9e9
..
815371a
100644
(file)
--- a/
sender.c
+++ b/
sender.c
@@
-179,7
+179,7
@@
void send_files(int f_in, int f_out)
while (1) {
if (inc_recurse)
while (1) {
if (inc_recurse)
- send_extra_file_list(f_out, FILECNT_LOOKAHEAD);
+ send_extra_file_list(f_out,
MIN_
FILECNT_LOOKAHEAD);
/* This call also sets cur_flist. */
ndx = read_ndx_and_attrs(f_in, &iflags, &fnamecmp_type,
/* This call also sets cur_flist. */
ndx = read_ndx_and_attrs(f_in, &iflags, &fnamecmp_type,
@@
-205,7
+205,7
@@
void send_files(int f_in, int f_out)
}
if (inc_recurse)
}
if (inc_recurse)
- send_extra_file_list(f_out, FILECNT_LOOKAHEAD);
+ send_extra_file_list(f_out,
MIN_
FILECNT_LOOKAHEAD);
if (ndx - cur_flist->ndx_start >= 0)
file = cur_flist->files[ndx - cur_flist->ndx_start];
if (ndx - cur_flist->ndx_start >= 0)
file = cur_flist->files[ndx - cur_flist->ndx_start];