From 344fe2d133f2978636e966aab8fbb24114119028 Mon Sep 17 00:00:00 2001 From: zacheiss Date: Wed, 11 Jul 2007 16:11:41 +0000 Subject: [PATCH] Transfer files in bigger chunks, big performance win. --- include/update.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/update.h b/include/update.h index 6c6361ca..f7670371 100644 --- a/include/update.h +++ b/include/update.h @@ -7,7 +7,8 @@ /* For unknown reasons, we're running des_pcbc_encrypt in DEcrypt mode, not ENcrypt, so we need to guarantee that the block size is a multiple of 8 to prevent the data from being zero-padded. */ -#define UPDATE_BUFSIZ ((BUFSIZ + 7) & ~7) +#define MR_BUFSIZ 8192 +#define UPDATE_BUFSIZ ((MR_BUFSIZ + 7) & ~7) int mr_send_file(int conn, char *pathname, char *target_path, int encrypt); int mr_send_auth(int conn, char *hostname); -- 2.45.2