repositories
/
deb_libnfs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
04e9034
)
Grow the marshalling buffer from 64k to 1M so we can marshall really large WRITE3s
author
Ronnie Sahlberg
<ronniesahlberg@gmail.com>
Tue, 24 Dec 2013 21:03:50 +0000
(13:03 -0800)
committer
Ronnie Sahlberg
<ronniesahlberg@gmail.com>
Tue, 24 Dec 2013 21:03:50 +0000
(13:03 -0800)
lib/init.c
patch
|
blob
|
blame
|
history
diff --git
a/lib/init.c
b/lib/init.c
index 2a451a16d51f4282b76b40f0d32ee416aae72ef0..7f4a8db190649d19c4386842955cc6c9b4574382 100644
(file)
--- 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);