diff options
| author | ame <[email protected]> | 2026-06-12 00:56:21 -0500 |
|---|---|---|
| committer | ame <[email protected]> | 2026-06-12 00:56:21 -0500 |
| commit | 4ecdd3c18ccc5d3bcaa82ed720bf28443aa0ca9d (patch) | |
| tree | 0c263f51545c664dd1d818cf63f6912ef0e73837 /src/net/common.h | |
| parent | 66aedfd65cff3494b70e8072646094479e3bfed8 (diff) | |
http body parsing rewrite
Diffstat (limited to 'src/net/common.h')
| -rw-r--r-- | src/net/common.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/net/common.h b/src/net/common.h index 6d2f625..ee8f77a 100644 --- a/src/net/common.h +++ b/src/net/common.h @@ -22,18 +22,19 @@ #define max_con 200 //2^42 #define MAX_HEADER_SIZE (1<<20) -#define BUFFER_SIZE 20000 +#define BUFFER_SIZE 210000 +//00 #define HTTP_BUFFER_SIZE 4098 #define max_content_length 200000 enum file_status { - _ignore, BARRIER_READ, FILE_HEADER, FILE_BODY, NORMAL + //_ignore, BARRIER_READ, FILE_HEADER, FILE_BODY, NORMAL + _ignore, BARRIER_START, BARRIER_END, NORMAL }; struct file_parse { enum file_status status; - str *current, *old, *boundary, *boundary_id; - int dash_count, table_idx; + str *current, *old, *boundary, *line; }; struct net_data { |
