Increase max package size and warning
authorJeroen van der Heijden <jeroen@transceptor.technology>
Thu, 21 Feb 2019 16:03:28 +0000 (17:03 +0100)
committerJeroen van der Heijden <jeroen@transceptor.technology>
Thu, 21 Feb 2019 16:03:28 +0000 (17:03 +0100)
include/siri/net/stream.h
src/siri/net/stream.c

index 2e06b6e2d7092bbf8cd1b8fe6571aab4d5608a51..c99db4664a4eb726b7f5ef5075bc1b6e957641b7 100644 (file)
@@ -4,7 +4,7 @@
 #ifndef SIRINET_STREAM_H_
 #define SIRINET_STREAM_H_
 
-#define RESET_BUF_SIZE 1048576  /*  1 MB        */
+#define RESET_BUF_SIZE 2097152  /*  2 MB  */
 
 typedef enum
 {
index b6a88a98f8917cb5182e21901c6349ea540a648a..cbcf1e80b9b4d18739bf6e0d8166c9ec48ea3d60 100644 (file)
@@ -13,7 +13,7 @@
 #include <stdlib.h>
 #include <string.h>
 
-#define MAX_ALLOWED_PKG_SIZE 20971520      /* 20 MB  */
+#define MAX_ALLOWED_PKG_SIZE 41943040      /* 40 MB  */
 
 #define QUIT_STREAM                     \
     free(client->buf);                  \