enable output buffering in the recv generator. This makes a
authorAndrew Tridgell <tridge@samba.org>
Thu, 2 Jul 1998 01:27:14 +0000 (01:27 +0000)
committerAndrew Tridgell <tridge@samba.org>
Thu, 2 Jul 1998 01:27:14 +0000 (01:27 +0000)
significant difference when the transport is ssh as ssh will otherwise
output a complete frame for each checksum record, which increases the
checksum data in size by a factor of around 4.

main.c

diff --git a/main.c b/main.c
index ed9dd173cba5d729679d94cad1ecb44ff552f951..dc2aac4b744f9014bdf4f384e472faeeccf6a85d 100644 (file)
--- a/main.c
+++ b/main.c
@@ -304,6 +304,8 @@ static int do_recv(int f_in,int f_out,struct file_list *flist,char *local_name)
 
        set_nonblocking(f_out);
 
+       io_start_buffering(f_out);
+
        generate_files(f_out,flist,local_name,recv_pipe[0]);
 
        io_flush();