Merge pull request #43 from plieven/master
[deb_libnfs.git] / lib / init.c
index df3c2aa2bd90cc25a7302907428c362648f7b85e..93d1db8b088b3780601d5251b63fb30d71a0e28e 100644 (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);