libmicrohttpd

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

commit 5b45f52e777fafb65fe9e4a53d202e38e3accdc9
parent b0fcfe2b6e2f4c2be54759c92a08222adb986b38
Author: Christian Grothoff <christian@grothoff.org>
Date:   Sun, 31 Mar 2013 18:06:37 +0000

bump, changelog

Diffstat:
MChangeLog | 10++++++++++
Msrc/examples/demo.c | 6++++--
Msrc/include/microhttpd.h | 2+-
3 files changed, 15 insertions(+), 3 deletions(-)

diff --git a/ChangeLog b/ChangeLog @@ -1,3 +1,13 @@ +Sun Mar 31 20:03:48 CEST 2013 + Performance improvements, updated documentation. + Make better use of available memory pool memory for + reading (especially important for large POST uploads); + improve post processor speed by internally adjusting the + buffer size by 4 bytes to ensure "round" IO sizes given + a "round" post processor buffer size argument. Note + that applications that previously added 4 bytes to the + post processor buffer size might now perform worse. -CG + Fri Mar 29 16:44:29 CET 2013 Renaming testcases to consistenly begin with test_; Changing build system to build examples in doc/. diff --git a/src/examples/demo.c b/src/examples/demo.c @@ -226,8 +226,6 @@ process_upload_data (void *cls, fprintf (stderr, "No filename, aborting upload\n"); return MHD_NO; /* no filename, error */ } - fprintf (stderr, "Got %u bytes of upload data for %s\n", - (unsigned int) size, filename); if (-1 == uc->fd) { uc->fd = open (filename, @@ -247,6 +245,10 @@ process_upload_data (void *cls, return MHD_NO; } } + else if (0 == size) + sleep (1); + + if ( (0 != size) && (size != write (uc->fd, data, size)) ) { diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h @@ -106,7 +106,7 @@ extern "C" /** * Current version of the library. */ -#define MHD_VERSION 0x00092000 +#define MHD_VERSION 0x00092001 /** * MHD-internal return code for "YES".