On 01/25/2017 05:01 AM, Mark Wagner wrote: > As far as I'm aware, there's no way to > know when the library is actually done with the response object.
Well, after you call MHD_stop_daemon(), we're definitively done ;-). But yes, you are totally right in the rest of your analysis. > It may be safe to free the buffer when the > MHD_RequestCompletedCallback is called, but the documentation is > unclear about this. Well, that's because you can share the same response object across multiple connections, in which case the completed callback for one connection is not helpful for the next one. Otherwise, yes, this ought to be safe, but as you said, this is not how PERSISTENT is supposed to be used.
signature.asc
Description: OpenPGP digital signature
