Add stop-n-wait mechanism to avoid sending too huge payloads.

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos
2026-05-18 16:41:27 +02:00
parent a9261e34ad
commit 3ddb459e5c
3 changed files with 144 additions and 38 deletions

View File

@@ -71,6 +71,13 @@ typedef struct {
bool request_complete;
bool request_dispatched;
bool request_headers_parsed;
#ifndef ENABLE_EMULATION
const char *tx_body;
size_t tx_body_len;
size_t tx_body_sent;
bool tx_pending;
bool tx_body_owned;
#endif
char request[REST_MAX_REQUEST_SIZE + 1];
#ifdef ENABLE_EMULATION
char _padding2[2];