aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-03-14 05:22:48 +0100
committerChristian Grothoff <christian@grothoff.org>2018-03-14 05:22:48 +0100
commit7d7ccbcdbdc45e72b30cb180eaf892dc782c408a (patch)
treecdb0af1b2a2ca1cae2fab84577aff1c54165ca32
parent85913afa11dc944f515170ef281c62768a71a743 (diff)
downloadlibmicrohttpd-7d7ccbcdbdc45e72b30cb180eaf892dc782c408a.tar.gz
libmicrohttpd-7d7ccbcdbdc45e72b30cb180eaf892dc782c408a.zip
Hi Christian,
Thank you! Very cool to see the example working. Funny, I implemented MHD_get_timeout in the main loop in my project but in all my tests it always returned MHD_NO, so I assumed it was not applicable to my use case and didn't include it in the example I wrote. But I didn't make the connection that it *also* had to be called after MHD_resume_connection until your response here. Would you consider the attached patch? It adds one line to the docs that I'm quite sure would have pointed me in the right direction had it been there before. Thanks! Bob
-rw-r--r--src/include/microhttpd.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h
index b4e436c2..cff084ed 100644
--- a/src/include/microhttpd.h
+++ b/src/include/microhttpd.h
@@ -2562,10 +2562,10 @@ MHD_suspend_connection (struct MHD_Connection *connection);
2562 * result in undefined behavior. 2562 * result in undefined behavior.
2563 * 2563 *
2564 * If you are using this function in ``external'' select mode, you must 2564 * If you are using this function in ``external'' select mode, you must
2565 * make sure to run #MHD_run() afterwards (before again calling 2565 * make sure to run #MHD_run() and #MHD_get_timeout() afterwards (before
2566 * #MHD_get_fdset(), as otherwise the change may not be reflected in 2566 * again calling #MHD_get_fdset()), as otherwise the change may not be
2567 * the set returned by #MHD_get_fdset() and you may end up with a 2567 * reflected in the set returned by #MHD_get_fdset() and you may end up
2568 * connection that is stuck until the next network activity. 2568 * with a connection that is stuck until the next network activity.
2569 * 2569 *
2570 * @param connection the connection to resume 2570 * @param connection the connection to resume
2571 */ 2571 */