summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2020-07-16 12:27:04 +0200
committerSimon Rettberg2020-07-16 12:27:04 +0200
commitead17354ae0c2498db4c9e07000bc742613ad362 (patch)
tree793fc9abed53e94216ad4636677b964918a4eb0f
parent[KERNEL] Assign socket timeouts directly, like other kernel modules (diff)
downloaddnbd3-ng-ead17354ae0c2498db4c9e07000bc742613ad362.tar.gz
dnbd3-ng-ead17354ae0c2498db4c9e07000bc742613ad362.tar.xz
dnbd3-ng-ead17354ae0c2498db4c9e07000bc742613ad362.zip
config.h: Lower serializer len to 800 for now
Stack frames for kernel code shouldn't exceed 1024 bytes. As we usually allocate the serializer buffer on the stack, lower it to 800 bytes to give some headroom. Move to a kalloc() and raise the limit again, should this limit be too small.
-rw-r--r--src/config.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config.h b/src/config.h
index 50336af..be73514 100644
--- a/src/config.h
+++ b/src/config.h
@@ -27,7 +27,7 @@
#define RPC_PORT (PORT+1)
// No serialized payload allowed exceeding this many bytes (so actual data from client->server is not affected by this limit!)
-#define MAX_PAYLOAD 1000
+#define MAX_PAYLOAD 800
// Protocol version should be increased whenever new features/messages are added,
// so either the client or server can run in compatibility mode, or they can