Re: [libmicrohttpd] NOTIFY_COMPLETED

2024-08-03 Thread Christian Grothoff
Hi MrDave, You're not exactly doing anything wrong, there is simply no guarantee (by the MHD API) as to when the ContentReaderFreeCallback will be called other than "after MHD is done with the response". So MHD _could_ call it before or after the NOTIFY_COMPLETED callback, so your code should

[libmicrohttpd] NOTIFY_COMPLETED

2024-08-03 Thread MrDave
Hi, I am using libmicrohttpd in my application and am seeing an unexpected sequence of function calls and am wondering if this is expected or whether there is something that I've set up incorrectly. When initiating the daemon, I am setting callbacks for both MHD_OPTION_URI_LOG_CALLBACK and M