libmicrohttpd
[Top][All Lists]
Advanced

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

Re: [libmicrohttpd] Clarification on receiving on one thread, replying o


From: Christian Grothoff
Subject: Re: [libmicrohttpd] Clarification on receiving on one thread, replying on another
Date: Tue, 25 Oct 2016 19:49:53 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:45.0) Gecko/20100101 Thunderbird/45.2.0

On 10/25/2016 07:24 PM, José Bollo wrote:
> This topic is very interesting.
> 
> Is it the same issue when an external select/poll is used?

If you use external select/poll, then you should still only queue a
response from within the AccessHandlerCallback.  The only major
difference with external select/pool is that you must run MHD_run() (or
equivalent) by somehow unblocking the system call to select/poll
manually after you call MHD_resume_connection().  Otherwise, MHD won't
"resume" processing instantly and your connection may hang until other
activity of the HTTP service allows it to proceed.


Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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