[Top][All Lists]

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

Re: [libmicrohttpd] Where are http requests queued?

From: Bob Furber
Subject: Re: [libmicrohttpd] Where are http requests queued?
Date: Tue, 05 May 2015 20:36:54 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0

On 15-05-05 04:14 PM, Christian Grothoff wrote:

Thanks for sharing your wisdom and experience. Makes sense, on reflection.

Bob F
Ah! So, the OS (Linux, in this case) has a TCP listen queue! Doh! I was
unaware. This is a good clue for further investigation.

But, I am still puzzled by the limit of 6 concurrent MHD threads? Why 6,
not 5, 7...? Is this modifiable? Would there be any benefit to
increasing or decreasing this number?
There is no hard limit like that by MHD. However, usually having
significantly more threads than cores is unlikely to improve performance
if you are CPU-bound. For the best performance, you should typically use
the thread pool, there you can specify exactly the number of threads MHD
should start.

Why you currently get exactly 6 is not something I can say; MHD should
start more (in thread-per-connection mode) if there are more concurrent
connections to be handled.


reply via email to

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