From: Andrew Tridgell Date: Thu, 2 Jul 1998 01:27:14 +0000 (+0000) Subject: enable output buffering in the recv generator. This makes a X-Git-Tag: v2.0.19~23 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b3e10ed75b42d175c18c869d3cb7b6fb6b66f3e9;p=thirdparty%2Frsync.git enable output buffering in the recv generator. This makes a 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. --- diff --git a/main.c b/main.c index ed9dd173..dc2aac4b 100644 --- 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();