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:
626bec8
)
Periodically call maybe_flush_socket().
author
Wayne Davison
<wayned@samba.org>
Tue, 5 Apr 2005 20:08:51 +0000
(20:08 +0000)
committer
Wayne Davison
<wayned@samba.org>
Tue, 5 Apr 2005 20:08:51 +0000
(20:08 +0000)
generator.c
patch
|
blob
|
blame
|
history
diff --git
a/generator.c
b/generator.c
index
245690c
..
b991500
100644
(file)
--- a/
generator.c
+++ b/
generator.c
@@
-1205,6
+1205,8
@@
void generate_files(int f_out, struct file_list *flist, char *local_name)
if (allowed_lull && !(i % lull_mod))
maybe_send_keepalive();
if (allowed_lull && !(i % lull_mod))
maybe_send_keepalive();
+ else if (!(i % 50))
+ maybe_flush_socket();
}
recv_generator(NULL, NULL, 0, 0, 0, code, -1);
if (delete_during)
}
recv_generator(NULL, NULL, 0, 0, 0, code, -1);
if (delete_during)
@@
-1278,8
+1280,10
@@
void generate_files(int f_out, struct file_list *flist, char *local_name)
continue;
recv_generator(f_name(file), file, i, itemizing,
maybe_PERMS_REPORT, code, -1);
continue;
recv_generator(f_name(file), file, i, itemizing,
maybe_PERMS_REPORT, code, -1);
- if (allowed_lull && !(
j++
% lull_mod))
+ if (allowed_lull && !(
++j
% lull_mod))
maybe_send_keepalive();
maybe_send_keepalive();
+ else if (!(j % 50))
+ maybe_flush_socket();
}
}
recv_generator(NULL, NULL, 0, 0, 0, code, -1);
}
}
recv_generator(NULL, NULL, 0, 0, 0, code, -1);