diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-09-04 15:51:15 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-09-04 15:51:15 +0000 |
commit | 58b3056ca8cecf0a7f3038d1db0333bee5cb7005 (patch) | |
tree | 9a2679ed57df1ab11f72dbbf30c2d11b02d8cd62 /doc | |
parent | 57ab27681ef657ab91916c43c3e52b9cb1c07c0a (diff) | |
download | libmicrohttpd-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.texi | 6 |
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 | |||
2238 | on a connection that was not previously suspended will result in | 2238 | on a connection that was not previously suspended will result in |
2239 | undefined behavior. | 2239 | undefined behavior. |
2240 | 2240 | ||
2241 | If you are using this function in ``external'' select mode, you must | ||
2242 | make sure to run @code{MHD_run} afterwards (before again calling | ||
2243 | @code{MHD_get_fdset}), as otherwise the change may not be reflected in | ||
2244 | the set returned by @code{MHD_get_fdset} and you may end up with a | ||
2245 | connection that is stuck until the next network activity. | ||
2246 | |||
2241 | You can check whether a connection is currently suspended using | 2247 | You 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}. |