diff options
Diffstat (limited to 'src/examples/demo.c')
-rw-r--r-- | src/examples/demo.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/examples/demo.c b/src/examples/demo.c index 945d384d..32c0294d 100644 --- a/src/examples/demo.c +++ b/src/examples/demo.c | |||
@@ -21,6 +21,11 @@ | |||
21 | * @file demo.c | 21 | * @file demo.c |
22 | * @brief complex demonstration site: upload, index, download | 22 | * @brief complex demonstration site: upload, index, download |
23 | * @author Christian Grothoff | 23 | * @author Christian Grothoff |
24 | * | ||
25 | * TODO: | ||
26 | * - even with LARGE memory pool & buffers, uploads proceed at 5000 bytes/call (ugh) | ||
27 | * - should have a slightly more ambitious upload form & file listing (structure!) | ||
28 | * - may want to add MIME-types to replies | ||
24 | */ | 29 | */ |
25 | #include "platform.h" | 30 | #include "platform.h" |
26 | #include <microhttpd.h> | 31 | #include <microhttpd.h> |
@@ -457,6 +462,7 @@ main (int argc, char *const *argv) | |||
457 | port, | 462 | port, |
458 | NULL, NULL, | 463 | NULL, NULL, |
459 | &generate_page, NULL, | 464 | &generate_page, NULL, |
465 | MHD_OPTION_CONNECTION_MEMORY_LIMIT, (size_t) (1024 * 1024), | ||
460 | MHD_OPTION_THREAD_POOL_SIZE, (unsigned int) 8, | 466 | MHD_OPTION_THREAD_POOL_SIZE, (unsigned int) 8, |
461 | MHD_OPTION_NOTIFY_COMPLETED, &response_completed_callback, NULL, | 467 | MHD_OPTION_NOTIFY_COMPLETED, &response_completed_callback, NULL, |
462 | MHD_OPTION_END); | 468 | MHD_OPTION_END); |