aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2016-10-11 15:21:32 +0000
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2016-10-11 15:21:32 +0000
commit984e0e964e6c0ad8cb96f51161fadebb6589e959 (patch)
treeef57de05a90e83097274fcdc510dcc4ae234ed66 /src/include
parentf5631e46aaaea2317b8d6b0385e2a6c9dde8350d (diff)
downloadlibmicrohttpd-984e0e964e6c0ad8cb96f51161fadebb6589e959.tar.gz
libmicrohttpd-984e0e964e6c0ad8cb96f51161fadebb6589e959.zip
Rename 'MHD_USE_PIPE_FOR_SHUTDOWN' -> 'MHD_USE_ITC' to reflect real meaning of option
Diffstat (limited to 'src/include')
-rw-r--r--src/include/microhttpd.h46
1 files changed, 24 insertions, 22 deletions
diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h
index 9d345da2..f149927a 100644
--- a/src/include/microhttpd.h
+++ b/src/include/microhttpd.h
@@ -635,22 +635,24 @@ enum MHD_FLAG
635 MHD_USE_EPOLL_INTERNALLY 635 MHD_USE_EPOLL_INTERNALLY
636 636
637 /** 637 /**
638 * Force MHD to use a signal pipe to notify the event loop (of 638 * Use inter-thread communication channel.
639 * threads) of our shutdown. This is required if an appliction uses 639 * #MHD_USE_ITC can be used with internal select/poll/other
640 * #MHD_USE_SELECT_INTERNALLY or #MHD_USE_THREAD_PER_CONNECTION and 640 * or #MHD_USE_THREAD_PER_CONNECTION and is ignored with any
641 * then performs #MHD_quiesce_daemon (which eliminates our ability 641 * "external" mode.
642 * to signal termination via the listen socket). In these modes, 642 * It's required for use of #MHD_quiesce_daemon
643 * #MHD_quiesce_daemon will fail if this option was not set. Also, 643 * or #MHD_add_connection.
644 * use of this option is automatic (as in, you do not even have to 644 * This option is enforced by #MHD_USE_SUSPEND_RESUME or
645 * specify it), if #MHD_USE_NO_LISTEN_SOCKET is specified. In 645 * #MHD_USE_NO_LISTEN_SOCKET.
646 * "external" `select()` mode, this option is always simply ignored. 646 * #MHD_USE_ITC is always used automatically on platforms
647 * MHD can be build for use a pair of sockets instead of a pipe. 647 * where select()/poll()/other ignore shutdown of listen
648 * Pair of sockets is forced on W32. 648 * socket.
649 * 649 */
650 * You must also use this option if you use internal select mode 650 MHD_USE_ITC = 1024,
651 * or a thread pool in conjunction with #MHD_add_connection. 651
652 */ 652/** @deprecated */
653 MHD_USE_PIPE_FOR_SHUTDOWN = 1024, 653#define MHD_USE_PIPE_FOR_SHUTDOWN \
654 _MHD_DEPR_IN_MACRO("Value MHD_USE_PIPE_FOR_SHUTDOWN is deprecated, use MHD_USE_ITC") \
655 MHD_USE_ITC
654 656
655 /** 657 /**
656 * Use a single socket for IPv4 and IPv6. 658 * Use a single socket for IPv4 and IPv6.
@@ -668,9 +670,9 @@ enum MHD_FLAG
668 670
669 /** 671 /**
670 * Enable suspend/resume functions, which also implies setting up 672 * Enable suspend/resume functions, which also implies setting up
671 * pipes to signal resume. 673 * ITC to signal resume.
672 */ 674 */
673 MHD_USE_SUSPEND_RESUME = 8192 | MHD_USE_PIPE_FOR_SHUTDOWN, 675 MHD_USE_SUSPEND_RESUME = 8192 | MHD_USE_ITC,
674 676
675 /** 677 /**
676 * Enable TCP_FASTOPEN option. This option is only available on Linux with a 678 * Enable TCP_FASTOPEN option. This option is only available on Linux with a
@@ -1634,7 +1636,7 @@ MHD_start_daemon (unsigned int flags,
1634 * that an existing thread is still using it). 1636 * that an existing thread is still using it).
1635 * 1637 *
1636 * Note that some thread modes require the caller to have passed 1638 * Note that some thread modes require the caller to have passed
1637 * #MHD_USE_PIPE_FOR_SHUTDOWN when using this API. If this daemon is 1639 * #MHD_USE_ITC when using this API. If this daemon is
1638 * in one of those modes and this option was not given to 1640 * in one of those modes and this option was not given to
1639 * #MHD_start_daemon, this function will return #MHD_INVALID_SOCKET. 1641 * #MHD_start_daemon, this function will return #MHD_INVALID_SOCKET.
1640 * 1642 *
@@ -1666,7 +1668,7 @@ MHD_stop_daemon (struct MHD_Daemon *daemon);
1666 * 1668 *
1667 * If you use this API in conjunction with a internal select or a 1669 * If you use this API in conjunction with a internal select or a
1668 * thread pool, you must set the option 1670 * thread pool, you must set the option
1669 * #MHD_USE_PIPE_FOR_SHUTDOWN to ensure that the freshly added 1671 * #MHD_USE_ITC to ensure that the freshly added
1670 * connection is immediately processed by MHD. 1672 * connection is immediately processed by MHD.
1671 * 1673 *
1672 * The given client socket will be managed (and closed!) by MHD after 1674 * The given client socket will be managed (and closed!) by MHD after
@@ -1968,7 +1970,7 @@ MHD_queue_response (struct MHD_Connection *connection,
1968 * thread-per-connection!) for a while. 1970 * thread-per-connection!) for a while.
1969 * 1971 *
1970 * If you use this API in conjunction with a internal select or a 1972 * If you use this API in conjunction with a internal select or a
1971 * thread pool, you must set the option #MHD_USE_PIPE_FOR_SHUTDOWN to 1973 * thread pool, you must set the option #MHD_USE_ITC to
1972 * ensure that a resumed connection is immediately processed by MHD. 1974 * ensure that a resumed connection is immediately processed by MHD.
1973 * 1975 *
1974 * Suspended connections continue to count against the total number of 1976 * Suspended connections continue to count against the total number of
@@ -2798,7 +2800,7 @@ enum MHD_FEATURE
2798 /** 2800 /**
2799 * Get whether shutdown on listen socket to signal other 2801 * Get whether shutdown on listen socket to signal other
2800 * threads is supported. If not supported flag 2802 * threads is supported. If not supported flag
2801 * #MHD_USE_PIPE_FOR_SHUTDOWN is automatically forced. 2803 * #MHD_USE_ITC is automatically forced.
2802 */ 2804 */
2803 MHD_FEATURE_SHUTDOWN_LISTEN_SOCKET = 8, 2805 MHD_FEATURE_SHUTDOWN_LISTEN_SOCKET = 8,
2804 2806