diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2016-11-08 00:37:29 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2016-11-08 01:00:00 +0300 |
commit | c39f9bfb2696e0b7c04c6f4b90ea0ab8b646e064 (patch) | |
tree | 4868e6b3bd73c991dc92a16c50b82f28a3a7d978 /doc | |
parent | fdf24fa69fb92db404db45f37563729947c9e380 (diff) | |
download | libmicrohttpd-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.texi | 22 |
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 |
436 | Options for the MHD daemon. | 436 | Options for the MHD daemon. |
437 | 437 | ||
438 | Note that if neither @code{MHD_USE_THREAD_PER_CONNECTION} nor | 438 | Note that MHD will run automatically in background thread(s) only |
439 | @code{MHD_USE_INTERNAL_POLLING_THREAD} is used, the client wants control over | 439 | if @code{MHD_USE_INTERNAL_POLLING_THREAD} is used. Otherwise caller |
440 | the process and will call the appropriate microhttpd callbacks. | 440 | (application) must use @code{MHD_run} or @code{MHD_run_from_select} |
441 | to have MHD processed network connections and data. | ||
441 | 442 | ||
442 | Starting the daemon may also fail if a particular option is not | 443 | Starting the daemon may also fail if a particular option is not |
443 | implemented or not supported on the target platform (i.e. no support for | 444 | implemented or not supported on the target platform (i.e. no support for |
@@ -502,10 +503,9 @@ production. | |||
502 | @cindex select | 503 | @cindex select |
503 | Use @code{poll()} instead of @code{select()}. This allows sockets with | 504 | Use @code{poll()} instead of @code{select()}. This allows sockets with |
504 | descriptors @code{>= FD_SETSIZE}. This option currently only works in | 505 | descriptors @code{>= FD_SETSIZE}. This option currently only works in |
505 | conjunction with @code{MHD_USE_THREAD_PER_CONNECTION} or | 506 | conjunction with @code{MHD_USE_INTERNAL_POLLING_THREAD} (at this point). |
506 | @code{MHD_USE_INTERNAL_POLLING_THREAD} (at this point). If you specify | 507 | If 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, | 508 | support 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 |
567 | Force MHD to use a signal inter-thread communication channel to notify | 567 | Force MHD to use a signal inter-thread communication channel to notify |
568 | the event loop (of threads) of our shutdown and other events. | 568 | the event loop (of threads) of our shutdown and other events. |
569 | This is required if an appliction uses | 569 | This 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 |
571 | and then performs @code{MHD_quiesce_daemon} (which eliminates our | 571 | @code{MHD_quiesce_daemon} (which eliminates our ability to signal |
572 | ability to signal termination via the listen socket). In these modes, | 572 | termination 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, |
574 | use of this option is automatic (as in, you do not even have to | 574 | use of this option is automatic (as in, you do not even have to |
575 | specify it), if @code{MHD_USE_NO_LISTEN_SOCKET} is specified. In | 575 | specify it), if @code{MHD_USE_NO_LISTEN_SOCKET} is specified. In |