reduce IO_BUFFER_SIZE by 4 bytes so when then length word gets added
authorAndrew Tridgell <tridge@samba.org>
Wed, 27 May 1998 13:47:34 +0000 (13:47 +0000)
committerAndrew Tridgell <tridge@samba.org>
Wed, 27 May 1998 13:47:34 +0000 (13:47 +0000)
it is a power of 2.

rsync.h

diff --git a/rsync.h b/rsync.h
index 6a2e583..2964dc1 100644 (file)
--- a/rsync.h
+++ b/rsync.h
@@ -51,7 +51,7 @@
 #define WRITE_SIZE (32*1024)
 #define CHUNK_SIZE (32*1024)
 #define MAX_MAP_SIZE (1*1024*1024)
-#define IO_BUFFER_SIZE (4096)
+#define IO_BUFFER_SIZE (4092)
 #define MAX_READ_BUFFER (1024*1024)
 
 #define MAX_ARGS 1000