libmicrohttpd
[Top][All Lists]
Advanced

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

Re: [libmicrohttpd] Remove PlibC from autotools files


From: Christian Grothoff
Subject: Re: [libmicrohttpd] Remove PlibC from autotools files
Date: Thu, 08 Aug 2013 20:35:19 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130704 Icedove/17.0.7

On 08/08/13 20:15, LRN wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 08.08.2013 21:25, Michael Cronenworth wrote:
On 08/08/2013 11:35 AM, LRN wrote:
Can you please email the whole MHD_select() function in its complete,
patched form? (yes, i'm too lazy to apply your patches myself)

http://fpaste.org/30900/13759826/


Thanks.

Now, consider this:
MHD_USE_THREAD_PER_CONNECTION is set, MHD_select_thread() runs
MHD_select() in a while loop, connection timeout is set to 5 seconds.

select() will block for up to 5 seconds. And while it blocks, pipe won't
be peeked. That is for how long the shutdown operation will lag, if all
connections are idle.

What if timeout is set not to 5 seconds, but more... ? Now you get the idea.


My proposal: get the appropriate permissions (from me, ndurner and,
possibly, bratao) and expropriate GNUnet code that uses 2 threads (main
thread and a separate pipe-waiting thread) and a socket to signal
between them.

Grothoff, what do you think?

Horrible ;-).  Let's keep this mess in PlibC ;-).

-Christian



reply via email to

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