commit 4cdf058b25117c8f00e406dacef6e5b2f578f893 parent 4f9c53c222ce07b4f02474ddcc45000d6638250f Author: Christian Grothoff <christian@grothoff.org> Date: Thu, 25 Jun 2015 12:59:09 +0000 -clarify when it is safe to call MHD_suspend_connection Diffstat:
| M | doc/libmicrohttpd.texi | | | 5 | ++++- |
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/doc/libmicrohttpd.texi b/doc/libmicrohttpd.texi @@ -2061,7 +2061,10 @@ connection is suspended, MHD will not detect disconnects by the client. The only safe time to suspend a connection is from the -@code{MHD_AccessHandlerCallback}. +@code{MHD_AccessHandlerCallback} or from the respective +@code{MHD_ContentReaderCallback} (but in this case the +response object must not be shared among multiple +connections). Finally, it is an API violation to call @code{MHD_stop_daemon} while having suspended connections (this will at least create memory and