libmicrohttpd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [libmicrohttpd] Query on async response using microhttpd


From: Christian Grothoff
Subject: Re: [libmicrohttpd] Query on async response using microhttpd
Date: Mon, 22 Aug 2016 22:06:40 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.1.0

I somehow doubt you got an error from MHD_create_response_from_buffer(),
that's, eh, very rare (pretty much always indicates out of memory).

I speculate that you meant you got an error from MHD_queue_response(),
which is what will happen if you try to do 'resume' and 'queue' within
the same function. You need to wait until MHD calls _you_ again (to the
main request callback) until you are allowed to queue the response.

On 08/22/2016 09:36 PM, Geetha Shanmugam wrote:
> 5. Function send_final_response() in process P1, *resumes the connection*
> and sends the response received from process P2
> using MHD_create_response_from_buffer().
> 6. MHD_create_response_from_buffer return error and the response is not
> sent out.

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]