aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2016-11-08 00:37:29 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2016-11-08 01:00:00 +0300
commitc39f9bfb2696e0b7c04c6f4b90ea0ab8b646e064 (patch)
tree4868e6b3bd73c991dc92a16c50b82f28a3a7d978 /doc
parentfdf24fa69fb92db404db45f37563729947c9e380 (diff)
downloadlibmicrohttpd-c39f9bfb2696e0b7c04c6f4b90ea0ab8b646e064.tar.gz
libmicrohttpd-c39f9bfb2696e0b7c04c6f4b90ea0ab8b646e064.zip
Specify that flag MHD_USE_INTERNAL_POLLING_THREAD is mandatory if MHD_USE_THREAD_PER_CONNECTION is used
Diffstat (limited to 'doc')
-rw-r--r--doc/libmicrohttpd.texi22
1 files changed, 11 insertions, 11 deletions
diff --git a/doc/libmicrohttpd.texi b/doc/libmicrohttpd.texi
index 86b94257..ae262950 100644
--- a/doc/libmicrohttpd.texi
+++ b/doc/libmicrohttpd.texi
@@ -435,9 +435,10 @@ compiler).
435@deftp {Enumeration} MHD_FLAG 435@deftp {Enumeration} MHD_FLAG
436Options for the MHD daemon. 436Options for the MHD daemon.
437 437
438Note that if neither @code{MHD_USE_THREAD_PER_CONNECTION} nor 438Note that MHD will run automatically in background thread(s) only
439@code{MHD_USE_INTERNAL_POLLING_THREAD} is used, the client wants control over 439if @code{MHD_USE_INTERNAL_POLLING_THREAD} is used. Otherwise caller
440the process and will call the appropriate microhttpd callbacks. 440(application) must use @code{MHD_run} or @code{MHD_run_from_select}
441to have MHD processed network connections and data.
441 442
442Starting the daemon may also fail if a particular option is not 443Starting the daemon may also fail if a particular option is not
443implemented or not supported on the target platform (i.e. no support for 444implemented or not supported on the target platform (i.e. no support for
@@ -502,10 +503,9 @@ production.
502@cindex select 503@cindex select
503Use @code{poll()} instead of @code{select()}. This allows sockets with 504Use @code{poll()} instead of @code{select()}. This allows sockets with
504descriptors @code{>= FD_SETSIZE}. This option currently only works in 505descriptors @code{>= FD_SETSIZE}. This option currently only works in
505conjunction with @code{MHD_USE_THREAD_PER_CONNECTION} or 506conjunction with @code{MHD_USE_INTERNAL_POLLING_THREAD} (at this point).
506@code{MHD_USE_INTERNAL_POLLING_THREAD} (at this point). If you specify 507If you specify @code{MHD_USE_POLL} and the local platform does not
507@code{MHD_USE_POLL} and the local platform does not support it, 508support it, @code{MHD_start_daemon} will return NULL.
508@code{MHD_start_daemon} will return NULL.
509 509
510@item MHD_USE_EPOLL 510@item MHD_USE_EPOLL
511@cindex FD_SETSIZE 511@cindex FD_SETSIZE
@@ -566,10 +566,10 @@ with using a thread pool; if it is used,
566@cindex quiesce 566@cindex quiesce
567Force MHD to use a signal inter-thread communication channel to notify 567Force MHD to use a signal inter-thread communication channel to notify
568the event loop (of threads) of our shutdown and other events. 568the event loop (of threads) of our shutdown and other events.
569This is required if an appliction uses 569This is required if an application uses
570@code{MHD_USE_INTERNAL_POLLING_THREAD} or @code{MHD_USE_THREAD_PER_CONNECTION} 570@code{MHD_USE_INTERNAL_POLLING_THREAD} and then performs
571and then performs @code{MHD_quiesce_daemon} (which eliminates our 571@code{MHD_quiesce_daemon} (which eliminates our ability to signal
572ability to signal termination via the listen socket). In these modes, 572termination via the listen socket). In these modes,
573@code{MHD_quiesce_daemon} will fail if this option was not set. Also, 573@code{MHD_quiesce_daemon} will fail if this option was not set. Also,
574use of this option is automatic (as in, you do not even have to 574use of this option is automatic (as in, you do not even have to
575specify it), if @code{MHD_USE_NO_LISTEN_SOCKET} is specified. In 575specify it), if @code{MHD_USE_NO_LISTEN_SOCKET} is specified. In