diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2024-01-04 16:33:36 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2024-01-04 16:33:36 +0300 |
commit | 8bfaec71d55f2e9e3251829c9fd15ae92b1203f8 (patch) | |
tree | e0c53d9701439beb7782610a2aa5afd213fb4844 /src/include/microhttpd.h | |
parent | 156e10012c539472c0387c5904d4c29b257499af (diff) | |
download | libmicrohttpd-8bfaec71d55f2e9e3251829c9fd15ae92b1203f8.tar.gz libmicrohttpd-8bfaec71d55f2e9e3251829c9fd15ae92b1203f8.zip |
MHD_OPTION_CONNECTION_MEMORY_{LIMIT,INCREMENT}: added ignore of zero value
Diffstat (limited to 'src/include/microhttpd.h')
-rw-r--r-- | src/include/microhttpd.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h index 194a268c..b0b06d51 100644 --- a/src/include/microhttpd.h +++ b/src/include/microhttpd.h | |||
@@ -96,7 +96,7 @@ extern "C" | |||
96 | * they are parsed as decimal numbers. | 96 | * they are parsed as decimal numbers. |
97 | * Example: 0x01093001 = 1.9.30-1. | 97 | * Example: 0x01093001 = 1.9.30-1. |
98 | */ | 98 | */ |
99 | #define MHD_VERSION 0x00097709 | 99 | #define MHD_VERSION 0x00097710 |
100 | 100 | ||
101 | /* If generic headers don't work on your platform, include headers | 101 | /* If generic headers don't work on your platform, include headers |
102 | which define 'va_list', 'size_t', 'ssize_t', 'intptr_t', 'off_t', | 102 | which define 'va_list', 'size_t', 'ssize_t', 'intptr_t', 'off_t', |
@@ -1667,6 +1667,7 @@ enum MHD_OPTION | |||
1667 | * of the memory will be typically used for IO, and TCP buffers are | 1667 | * of the memory will be typically used for IO, and TCP buffers are |
1668 | * unlikely to support window sizes above 64k on most systems. | 1668 | * unlikely to support window sizes above 64k on most systems. |
1669 | * Values below 64 bytes are completely unusable. | 1669 | * Values below 64 bytes are completely unusable. |
1670 | * Since #MHD_VERSION 0x00097710 silently ignored if followed by zero value. | ||
1670 | */ | 1671 | */ |
1671 | MHD_OPTION_CONNECTION_MEMORY_LIMIT = 1, | 1672 | MHD_OPTION_CONNECTION_MEMORY_LIMIT = 1, |
1672 | 1673 | ||
@@ -1910,6 +1911,7 @@ enum MHD_OPTION | |||
1910 | * Increment to use for growing the read buffer (followed by a | 1911 | * Increment to use for growing the read buffer (followed by a |
1911 | * `size_t`). | 1912 | * `size_t`). |
1912 | * Must not be higher than 1/4 of #MHD_OPTION_CONNECTION_MEMORY_LIMIT. | 1913 | * Must not be higher than 1/4 of #MHD_OPTION_CONNECTION_MEMORY_LIMIT. |
1914 | * Since #MHD_VERSION 0x00097710 silently ignored if followed by zero value. | ||
1913 | */ | 1915 | */ |
1914 | MHD_OPTION_CONNECTION_MEMORY_INCREMENT = 21, | 1916 | MHD_OPTION_CONNECTION_MEMORY_INCREMENT = 21, |
1915 | 1917 | ||