diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-04-09 07:03:26 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-04-09 07:03:26 +0000 |
commit | 086ba366b757984dc68577aaa6dac7b2d5a7c2ac (patch) | |
tree | 4ea4409b43a4c67075657807400af351dc5578c2 /AUTHORS | |
parent | 741ca4907942d10defcc6133286e1766665d18c1 (diff) | |
download | libmicrohttpd-086ba366b757984dc68577aaa6dac7b2d5a7c2ac.tar.gz libmicrohttpd-086ba366b757984dc68577aaa6dac7b2d5a7c2ac.zip |
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.
Regards,
Denis
Diffstat (limited to 'AUTHORS')
-rw-r--r-- | AUTHORS | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -52,6 +52,7 @@ Sree Harsha Totakura <sreeharsha@totakura.in> | |||
52 | Hani Benhabiles <kroosec@gmail.com> | 52 | Hani Benhabiles <kroosec@gmail.com> |
53 | Guy Martin <gmsoft@tuxicoman.be> | 53 | Guy Martin <gmsoft@tuxicoman.be> |
54 | Robert Groenenberg <robert.groenenberg@broadforward.com> | 54 | Robert Groenenberg <robert.groenenberg@broadforward.com> |
55 | Denis Dowling <denis.dowling@hsd.com.au> | ||
55 | 56 | ||
56 | 57 | ||
57 | Documentation contributions also came from: | 58 | Documentation contributions also came from: |