aboutsummaryrefslogtreecommitdiff
path: root/src/net/common.h
diff options
context:
space:
mode:
authorame <[email protected]>2026-06-12 00:56:21 -0500
committerame <[email protected]>2026-06-12 00:56:21 -0500
commit4ecdd3c18ccc5d3bcaa82ed720bf28443aa0ca9d (patch)
tree0c263f51545c664dd1d818cf63f6912ef0e73837 /src/net/common.h
parent66aedfd65cff3494b70e8072646094479e3bfed8 (diff)
http body parsing rewrite
Diffstat (limited to 'src/net/common.h')
-rw-r--r--src/net/common.h9
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 {