diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2023-06-17 17:22:54 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2023-06-20 23:22:57 +0300 |
commit | f7bae2ce3ea4c4ef4082a754a105982c84828698 (patch) | |
tree | a29d8555a3b58e824a1e3e994de6885c3e996b2c /src/microhttpd/internal.h | |
parent | 30bf05560d6e1c87dc1ea91cde5d58330c53af22 (diff) | |
download | libmicrohttpd-f7bae2ce3ea4c4ef4082a754a105982c84828698.tar.gz libmicrohttpd-f7bae2ce3ea4c4ef4082a754a105982c84828698.zip |
Minor refactoring for partially processed request body
Diffstat (limited to 'src/microhttpd/internal.h')
-rw-r--r-- | src/microhttpd/internal.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/microhttpd/internal.h b/src/microhttpd/internal.h index 651e6170..909e24d4 100644 --- a/src/microhttpd/internal.h +++ b/src/microhttpd/internal.h | |||
@@ -1132,14 +1132,19 @@ struct MHD_Request | |||
1132 | uint64_t current_chunk_offset; | 1132 | uint64_t current_chunk_offset; |
1133 | 1133 | ||
1134 | /** | 1134 | /** |
1135 | * Indicate that some of the upload payload data have been processed | 1135 | * Indicate that some of the upload payload data (from the currently |
1136 | * by the last call of the connection handler. | 1136 | * processed chunk for chunked uploads) have been processed by the |
1137 | * last call of the connection handler. | ||
1137 | * If any data have been processed, but some data left in the buffer | 1138 | * If any data have been processed, but some data left in the buffer |
1138 | * for further processing, then MHD will use zero timeout before the | 1139 | * for further processing, then MHD will use zero timeout before the |
1139 | * next data processing round. | 1140 | * next data processing round. This allow the application handler |
1141 | * process the data by the fixed portions or other way suitable for | ||
1142 | * application developer. | ||
1140 | * If no data have been processed, than MHD will wait for more data | 1143 | * If no data have been processed, than MHD will wait for more data |
1141 | * to come (as it makes no sense to call the connection handler with | 1144 | * to come (as it makes no sense to call the same connection handler |
1142 | * the same conditions). | 1145 | * under the same conditions). However this is dangerous as if buffer |
1146 | * is completely used then connection is aborted. Connection | ||
1147 | * suspension should be used in such case. | ||
1143 | */ | 1148 | */ |
1144 | bool some_payload_processed; | 1149 | bool some_payload_processed; |
1145 | 1150 | ||