mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-29 10:11:49 -04:00
[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:
parent
e46ab5524f
commit
f5483bf639
3 changed files with 585 additions and 551 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
1126
src/proto_http.c
1126
src/proto_http.c
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue