On Thursday, April 09, 2015 5:28:51 AM Denis Dowling wrote:
> Hi all,
> 
> I was trying to use MHD_suspend_connection() and MHD_resume_connection() to
> implement long polling on a request. I am using options
> MHD_USE_SELECT_INTERNALLY and MHD_USE_POLL options. I noticed the server
> thread went to 100% CPU after the first MHD_resume_connection() call.
> Looking at the code in MHD_poll_all() I can see that the file descriptor
> from daemon->wpipe[0] gets inserted into the list of file descriptors to
> poll but this file descriptor is never read so every time this function is
> called it returns immediately. The code works fine if I drop to using just
> MHD_USE_SELECT_INTERNALLY.
> 
> The patch below fixes the problem.

Does it work besides that? I was never able to get it to work at all...

Luke

Reply via email to