From b3e10ed75b42d175c18c869d3cb7b6fb6b66f3e9 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 2 Jul 1998 01:27:14 +0000 Subject: [PATCH] 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. --- main.c | 2 ++ 1 file changed, 2 insertions(+) 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(); -- 2.34.1