X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/417099fa203356705454dbbbc6b632e7c17c2036..e8a96e275edbec0b69eba596a410ba011ec0ffec:/generator.c diff --git a/generator.c b/generator.c index b991500a..1d662b48 100644 --- a/generator.c +++ b/generator.c @@ -1132,6 +1132,7 @@ void generate_files(int f_out, struct file_list *flist, char *local_name) int save_only_existing = only_existing; int save_opt_ignore_existing = opt_ignore_existing; int save_do_progress = do_progress; + int save_make_backups = make_backups; allowed_lull = read_batch ? 0 : (io_timeout + 1) / 2; lull_mod = allowed_lull * 5; @@ -1205,7 +1206,7 @@ void generate_files(int f_out, struct file_list *flist, char *local_name) if (allowed_lull && !(i % lull_mod)) maybe_send_keepalive(); - else if (!(i % 50)) + else if (!(i % 200)) maybe_flush_socket(); } recv_generator(NULL, NULL, 0, 0, 0, code, -1); @@ -1240,6 +1241,7 @@ void generate_files(int f_out, struct file_list *flist, char *local_name) phase++; only_existing = save_only_existing; opt_ignore_existing = save_opt_ignore_existing; + make_backups = save_make_backups; if (verbose > 2) rprintf(FINFO,"generate_files phase=%d\n",phase); @@ -1282,7 +1284,7 @@ void generate_files(int f_out, struct file_list *flist, char *local_name) maybe_PERMS_REPORT, code, -1); if (allowed_lull && !(++j % lull_mod)) maybe_send_keepalive(); - else if (!(j % 50)) + else if (!(j % 200)) maybe_flush_socket(); } }