|
From: | Kunal Ekawde |
Subject: | Re: [libmicrohttpd] Aync handling & message response |
Date: | Wed, 29 Aug 2018 13:13:36 +0530 |
On 08/29/2018 08:44 AM, Kunal Ekawde wrote:
> 3. Just after #2, when curl_multi_info_read is successful ,
> MHD_queue_response is invoked, but it returns 0 and the easy_handle
> state is 1.
>
> Can we send the response to client only from the MHD callback handler ?
Yes. You must call MHD_resume_connection (you should have called suspend
before), and then queue once the callback is invoked.
> or something is missing in above ?
Nope, just "bad timing" of the call.
[Prev in Thread] | Current Thread | [Next in Thread] |