diff options
Diffstat (limited to 'src/microhttpd/internal.h')
-rw-r--r-- | src/microhttpd/internal.h | 12 |
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. |