On 13.06.2017 19:37, Darshit Shah wrote:
>>
>> Things which would be done in the coming week:
>>
>> * Finished on wget_test_start_server() in order to call Libmicrohttpd as
>>   service for wget_test(). Problems and questions need to be resolved:
>>   - Decide what the best threading model for Libmicrohttpd. Currently
>> using
>>     MHD_USE_INTERNALLY_POLLING_THREAD which use external select. I
>> still check
>>     the comparison with legacy code that use Wget2 API wget_thread_start.
> Choose any mechanism that uses select(). We can change the threading
> model at a later stage if it turns out to be a bottleneck. `epoll` is
> Linux-only and even `poll` isn't always available, so as long as you
> choose a `select` based implementation, it should be fine for now.

You can use MHD_is_feature_supported() with MHD_FEATURE_POLL and
MHD_FEATURE_EPOLL to check for supported polling functions.
Alternatively, with latest versions of MHD you can use MHD_USE_AUTO and
MHD will choose select(), poll() or epoll-based polling automatically.

-- 
Wishes,
Evgeny

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to