From 1abcf596a441778b2e5ceb6b80c48812467f114d Mon Sep 17 00:00:00 2001 From: Hieromon Ikasamo Date: Tue, 29 Jan 2019 01:26:46 +0900 Subject: [PATCH] Avoid insufficient memory --- src/AutoConnectDefs.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/AutoConnectDefs.h b/src/AutoConnectDefs.h index ad69bc8..537b5d9 100644 --- a/src/AutoConnectDefs.h +++ b/src/AutoConnectDefs.h @@ -121,6 +121,11 @@ #define AUTOCONNECT_HTTP_TRANSFER PB_ByteStream #endif // !AUTOCONNECT_HTTP_TRANSFER +// Reserved buffer size to build content +#ifndef AUTOCONNECT_CONTENTBUFFER_SIZE +#define AUTOCONNECT_CONTENTBUFFER_SIZE 10240 +#endif // !AUTOCONNECT_CONTENTBUFFER_SIZE + // Explicitly avoiding unused warning with token handler of PageBuilder #define AC_UNUSED(expr) do { (void)(expr); } while (0)