Re: [libmicrohttpd] Using MHD with external thread

2020-07-02 Thread Christian Grothoff
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

[libmicrohttpd] Using MHD with external thread

2020-07-01 Thread Anaswara Nair
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