]> andersk Git - moira.git/commitdiff
Transfer files in bigger chunks, big performance win.
authorzacheiss <zacheiss>
Wed, 11 Jul 2007 16:11:41 +0000 (16:11 +0000)
committerzacheiss <zacheiss>
Wed, 11 Jul 2007 16:11:41 +0000 (16:11 +0000)
include/update.h

index 6c6361cab9e49a8334df21f493d38bda20f35b11..f7670371e9410323f319b01f764cb86a6010cbf3 100644 (file)
@@ -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);
This page took 0.070292 seconds and 5 git commands to generate.