From ead17354ae0c2498db4c9e07000bc742613ad362 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Thu, 16 Jul 2020 12:27:04 +0200 Subject: 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. --- src/config.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3-55-g7522