aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-09-04 15:51:15 +0000
committerChristian Grothoff <christian@grothoff.org>2016-09-04 15:51:15 +0000
commit58b3056ca8cecf0a7f3038d1db0333bee5cb7005 (patch)
tree9a2679ed57df1ab11f72dbbf30c2d11b02d8cd62 /doc
parent57ab27681ef657ab91916c43c3e52b9cb1c07c0a (diff)
downloadlibmicrohttpd-58b3056ca8cecf0a7f3038d1db0333bee5cb7005.tar.gz
libmicrohttpd-58b3056ca8cecf0a7f3038d1db0333bee5cb7005.zip
-document better how to use MHD_resume_connection() with external event loop
Diffstat (limited to 'doc')
-rw-r--r--doc/libmicrohttpd.texi6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/libmicrohttpd.texi b/doc/libmicrohttpd.texi
index 74a285c7..f3a96608 100644
--- a/doc/libmicrohttpd.texi
+++ b/doc/libmicrohttpd.texi
@@ -2238,6 +2238,12 @@ to resume a suspended connection at any time. Calling this function
2238on a connection that was not previously suspended will result in 2238on a connection that was not previously suspended will result in
2239undefined behavior. 2239undefined behavior.
2240 2240
2241If you are using this function in ``external'' select mode, you must
2242make sure to run @code{MHD_run} afterwards (before again calling
2243@code{MHD_get_fdset}), as otherwise the change may not be reflected in
2244the set returned by @code{MHD_get_fdset} and you may end up with a
2245connection that is stuck until the next network activity.
2246
2241You can check whether a connection is currently suspended using 2247You can check whether a connection is currently suspended using
2242@code{MHD_get_connection_info} by querying for 2248@code{MHD_get_connection_info} by querying for
2243@code{MHD_CONNECTION_INFO_CONNECTION_SUSPENDED}. 2249@code{MHD_CONNECTION_INFO_CONNECTION_SUSPENDED}.