Don't call maybe_flush_socket() quite so often.
authorWayne Davison <wayned@samba.org>
Thu, 7 Apr 2005 08:32:32 +0000 (08:32 +0000)
committerWayne Davison <wayned@samba.org>
Thu, 7 Apr 2005 08:32:32 +0000 (08:32 +0000)
generator.c

index 1cc1905..1d662b4 100644 (file)
@@ -1206,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);
@@ -1284,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();
                }
        }