[MAJOR] get rid of the SV_STHEADERS state

The HTTP response code has been moved to a specific function
called "process_response" and the SV_STHEADERS state has been
removed and replaced with the flag AN_RTR_HTTP_HDR.
This commit is contained in:
Willy Tarreau 2008-08-14 18:35:40 +02:00
parent e46ab5524f
commit f5483bf639
3 changed files with 585 additions and 551 deletions

View File

@ -62,6 +62,7 @@ void process_session(struct task *t, int *next);
int process_cli(struct session *t);
int process_srv(struct session *t);
int process_request(struct session *t);
int process_response(struct session *t);
void client_retnclose(struct session *s, const struct chunk *msg);
void client_return(struct session *s, const struct chunk *msg);

View File

@ -40,11 +40,10 @@
/* different possible states for the server side */
#define SV_STIDLE 0
#define SV_STCONN 1
#define SV_STHEADERS 2
#define SV_STDATA 3
#define SV_STSHUTR 4
#define SV_STSHUTW 5
#define SV_STCLOSE 6
#define SV_STDATA 2
#define SV_STSHUTR 3
#define SV_STSHUTW 4
#define SV_STCLOSE 5
/*
* Transaction flags moved from session

File diff suppressed because it is too large Load Diff