From f3c0359876b59aa8fc2f03fa61363ede9d2edc2f Mon Sep 17 00:00:00 2001 From: erdgeist <> Date: Wed, 18 Nov 2009 04:00:26 +0000 Subject: Make header parsing more efficient, prepare multithreading and keep-alive. --- ot_http.h | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'ot_http.h') diff --git a/ot_http.h b/ot_http.h index 84da0c2..7e367ed 100644 --- a/ot_http.h +++ b/ot_http.h @@ -7,18 +7,14 @@ #define __OT_HTTP_H__ typedef enum { - STRUCT_HTTP_FLAG_ARRAY_USED = 1, - STRUCT_HTTP_FLAG_IOB_USED = 2, - STRUCT_HTTP_FLAG_WAITINGFORTASK = 4, - STRUCT_HTTP_FLAG_GZIP = 8, - STRUCT_HTTP_FLAG_BZIP2 = 16 + STRUCT_HTTP_FLAG_WAITINGFORTASK = 1, + STRUCT_HTTP_FLAG_GZIP = 2, + STRUCT_HTTP_FLAG_BZIP2 = 4 } STRUCT_HTTP_FLAG; struct http_data { - union { - array request; - io_batch batch; - } data; + array request; + io_batch batch; ot_ip6 ip; STRUCT_HTTP_FLAG flag; }; -- cgit v1.2.3