[libmicrohttpd] Using MHD_UpgradeResponseHandle without including internal.h

2017-03-30 Thread John Duncan
I noticed that microhttpd.h only contains only forward defintions of the MHD_UpgradeResponseHandle structure. The file internal.h contains the actual structure definition with all members. When I try to include the internal.h file directly, I get tons of compilation errors leading me to believe

[libmicrohttpd] MHD_create_post_processor: recommended buffer size for large posts

2017-03-30 Thread silvioprog
Hello dudes, Looking at MHD examples, it seems the recommended buffer size to specify on MHD_create_post_processor() for large uploads is 512: https://gnunet.org/svn/libmicrohttpd/doc/examples/largepost.c However, what means large for you? About 100 MB, 1 GB, 10 GB or greater?! I have a structu

Re: [libmicrohttpd] Using MHD_UpgradeResponseHandle without including internal.h

2017-03-30 Thread Evgeny Grin
Hi John, MHD_UpgradeResponseHandle is intentionally opaque. It's not designed for direct usage of internal members. If you define it locally, you'll almost likely to break compatibility with future version. MHD uses a lot of opaque structures which are internally changed from version to version. B

Re: [libmicrohttpd] MHD_create_post_processor: recommended buffer size for large posts

2017-03-30 Thread Evgeny Grin
Hi Silvio, Sidenote: SVN is not updated any more, latest version is on git: https://gnunet.org/git/libmicrohttpd.git/tree/doc/examples/largepost.c "512" is not recommended size, it's just suitable size for example. Optimal value depends on OS, architecture, amount of available RAM. You should ex