libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit aaecd079b6b81717e88ed30c90efb809bad2f229
parent 7c89f644a15e361fc487523e9fb7a8921726aee7
Author: Christian Grothoff <christian@grothoff.org>
Date:   Tue, 21 Aug 2012 12:33:51 +0000

reduce xbuf_size as suggested by Martin Velek on mailinglist

Diffstat:
MChangeLog | 4++++
Msrc/daemon/postprocessor.c | 4+++-
2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog @@ -1,3 +1,7 @@ +Tue Aug 21 14:31:54 CEST 2012 + Reduce default size in post processor buffer (for small systems; + performance impact on large systems should be minimal). -CG/MV + Thu Jul 19 21:48:42 CEST 2012 Releasing libmicrohttpd 0.9.21. -CG diff --git a/src/daemon/postprocessor.c b/src/daemon/postprocessor.c @@ -27,8 +27,10 @@ /** * Size of on-stack buffer that we use for un-escaping of the value. + * We use a pretty small value to be nice to the stack on embedded + * systems. */ -#define XBUF_SIZE 1024 +#define XBUF_SIZE 512 /** * States in the PP parser's state machine.