Grow the marshalling buffer from 64k to 1M so we can marshall really large WRITE3s

libnfs-4.0.0-vitalif
Ronnie Sahlberg 2013-12-24 13:03:50 -08:00
parent 04e9034165
commit 35280fd7a4
1 changed files with 3 additions and 1 deletions

View File

@ -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);