-----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?