X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=lib%2Finit.c;h=93d1db8b088b3780601d5251b63fb30d71a0e28e;hb=6d89ace041388b1770167eb473ac539ae74f37db;hp=df3c2aa2bd90cc25a7302907428c362648f7b85e;hpb=9126c9c0366028cb799978d145fd361c6635b5f4;p=deb_libnfs.git diff --git a/lib/init.c b/lib/init.c index df3c2aa..93d1db8 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);