[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [libmicrohttpd] Using MHD with external thread
From: |
Christian Grothoff |
Subject: |
Re: [libmicrohttpd] Using MHD with external thread |
Date: |
Thu, 2 Jul 2020 11:19:01 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 |
Well, "MHD_get_fdset()" is by design suitable for select(). You _can_
convert the result to an input for poll(), but that is painful. If
epoll() is supported on your system, you may want to use the
MHD_DAEMON_INFO_EPOLL_FD to get an epoll-FD from MHD and throw that into
poll() _or_ epoll().
On 7/1/20 10:09 PM, Anaswara Nair wrote:
> Hi,
>
> Is it mandatory that there should be a select() if we are using
> MHD_get_fdset() and MHD_run()? What if we want to use poll? One more
> doubt is if we use USE_EPOLL_LINUX_ONLY flag, will it create internal
> mhd thread? As the documentation tella that it is not supported by ll
> linux versions, do we have a list in which it will not fail..
0x939E6BE1E29FC3CC.asc
Description: application/pgp-keys
signature.asc
Description: OpenPGP digital signature