From 4ecdd3c18ccc5d3bcaa82ed720bf28443aa0ca9d Mon Sep 17 00:00:00 2001 From: ame Date: Fri, 12 Jun 2026 00:56:21 -0500 Subject: http body parsing rewrite --- src/net/common.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/net/common.h') 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 { -- cgit v1.2.3