From 58b3056ca8cecf0a7f3038d1db0333bee5cb7005 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 4 Sep 2016 15:51:15 +0000 Subject: -document better how to use MHD_resume_connection() with external event loop --- doc/libmicrohttpd.texi | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'doc') 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 on a connection that was not previously suspended will result in undefined behavior. +If you are using this function in ``external'' select mode, you must +make sure to run @code{MHD_run} afterwards (before again calling +@code{MHD_get_fdset}), as otherwise the change may not be reflected in +the set returned by @code{MHD_get_fdset} and you may end up with a +connection that is stuck until the next network activity. + You can check whether a connection is currently suspended using @code{MHD_get_connection_info} by querying for @code{MHD_CONNECTION_INFO_CONNECTION_SUSPENDED}. -- cgit v1.2.3