aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/internal.h
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2021-08-21 16:39:35 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2021-08-21 18:35:20 +0300
commit4fb57ae153ddd856c80885425eb2321cd95a2cf0 (patch)
tree794757846326cd4f8ea182f20539ff5f31b7e5e8 /src/microhttpd/internal.h
parent55785fe949779a18c461000ce0b4356f790fb8c5 (diff)
downloadlibmicrohttpd-4fb57ae153ddd856c80885425eb2321cd95a2cf0.tar.gz
libmicrohttpd-4fb57ae153ddd856c80885425eb2321cd95a2cf0.zip
Added new connection flag "stop_with_error".
Stopped usage of "read_close" flag when read hasn't been closed.
Diffstat (limited to 'src/microhttpd/internal.h')
-rw-r--r--src/microhttpd/internal.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/microhttpd/internal.h b/src/microhttpd/internal.h
index 60d1862d..a2a454f1 100644
--- a/src/microhttpd/internal.h
+++ b/src/microhttpd/internal.h
@@ -1186,6 +1186,18 @@ struct MHD_Connection
1186 */ 1186 */
1187 bool read_closed; 1187 bool read_closed;
1188 1188
1189 /**
1190 * Some error happens during processing the connection therefore this
1191 * connection must be closed.
1192 * The error may come from the client side (like wrong request format),
1193 * from the application side (like data callback returned error), or from
1194 * the OS side (like out-of-memory).
1195 * The connection cannot be reused for additional requests as the current
1196 * request may be incompletely read and it is unclear where is the initial
1197 * byte of the next request.
1198 */
1199 bool stop_with_error;
1200
1189#if defined(MHD_USE_POSIX_THREADS) || defined(MHD_USE_W32_THREADS) 1201#if defined(MHD_USE_POSIX_THREADS) || defined(MHD_USE_W32_THREADS)
1190 /** 1202 /**
1191 * Set to `true` if the thread has been joined. 1203 * Set to `true` if the thread has been joined.