save 8 bytes in http_parser structure

nread can never be larger than HTTP_MAX_HEADER_SIZE
event_stream
Cliff Frey 14 years ago committed by Ryan Dahl
parent ca2514dd3a
commit c30ea4515c

@ -100,14 +100,13 @@ enum http_parser_type { HTTP_REQUEST, HTTP_RESPONSE, HTTP_BOTH };
struct http_parser {
/** PRIVATE **/
unsigned char type;
unsigned char type : 2;
unsigned char flags : 6;
unsigned char state;
unsigned char header_state;
unsigned char index;
char flags;
uint64_t nread;
uint32_t nread;
int64_t content_length;
/** READ-ONLY **/

Loading…
Cancel
Save