aboutsummaryrefslogtreecommitdiff
path: root/src/include/microhttpd.h
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2021-03-17 20:55:33 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2021-03-17 21:00:14 +0300
commit2e40251a934933f35413ea3ef978656f2eb0730a (patch)
treebc7abc347b34e3345d931063cd1dd70a15326019 /src/include/microhttpd.h
parentd71df0f08b6cdf2e57739fc48b1420aa9a2a5cd7 (diff)
downloadlibmicrohttpd-2e40251a934933f35413ea3ef978656f2eb0730a.tar.gz
libmicrohttpd-2e40251a934933f35413ea3ef978656f2eb0730a.zip
Added MHD_OPTION_SIGPIPE_HANDLED_BY_APP option
Diffstat (limited to 'src/include/microhttpd.h')
-rw-r--r--src/include/microhttpd.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h
index 76847c9f..59170dfe 100644
--- a/src/include/microhttpd.h
+++ b/src/include/microhttpd.h
@@ -135,7 +135,7 @@ typedef intptr_t ssize_t;
135 * they are parsed as decimal numbers. 135 * they are parsed as decimal numbers.
136 * Example: 0x01093001 = 1.9.30-1. 136 * Example: 0x01093001 = 1.9.30-1.
137 */ 137 */
138#define MHD_VERSION 0x00097204 138#define MHD_VERSION 0x00097205
139 139
140/** 140/**
141 * Operational results from MHD calls. 141 * Operational results from MHD calls.
@@ -1732,7 +1732,18 @@ enum MHD_OPTION
1732 * This argument must be followed by an "unsigned int", corresponding 1732 * This argument must be followed by an "unsigned int", corresponding
1733 * to an `enum MHD_DisableSanityCheck`. 1733 * to an `enum MHD_DisableSanityCheck`.
1734 */ 1734 */
1735 MHD_OPTION_SERVER_INSANITY = 32 1735 MHD_OPTION_SERVER_INSANITY = 32,
1736
1737 /**
1738 * If followed by value '1' informs MHD that SIGPIPE is suppressed or
1739 * handled by application. Allows MHD to use network functions that could
1740 * generate SIGPIPE, like `sendfile()`.
1741 * Valid only for daemons without #MHD_USE_INTERNAL_POLLING_THREAD as
1742 * MHD automatically suppresses SIGPIPE for threads started by MHD.
1743 * This option should be followed by an `int` argument.
1744 * @note Available since #MHD_VERSION 0x00097205
1745 */
1746 MHD_OPTION_SIGPIPE_HANDLED_BY_APP = 33
1736}; 1747};
1737 1748
1738 1749