From 35280fd7a4915c7e1cc121859558c2017fb18969 Mon Sep 17 00:00:00 2001 From: Ronnie Sahlberg Date: Tue, 24 Dec 2013 13:03:50 -0800 Subject: [PATCH] Grow the marshalling buffer from 64k to 1M so we can marshall really large WRITE3s --- lib/init.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/init.c b/lib/init.c index 2a451a1..7f4a8db 100644 --- a/lib/init.c +++ b/lib/init.c @@ -57,7 +57,9 @@ struct rpc_context *rpc_init_context(void) memset(rpc, 0, sizeof(struct rpc_context)); rpc->magic = RPC_CONTEXT_MAGIC; - rpc->encodebuflen = 65536; + + /* Allow 1M of data (for writes) and some */ + rpc->encodebuflen = 1024 * 1024 + 4096; rpc->encodebuf = malloc(rpc->encodebuflen); if (rpc->encodebuf == NULL) { free(rpc); -- 2.34.1