[MEDIUM] rename process_request to http_process_request

Now the function only does HTTP request and nothing else. Also pass
the request buffer to it.
This commit is contained in:
Willy Tarreau 2008-11-30 23:51:27 +01:00
parent d34af78a34
commit 59234e91c2
3 changed files with 698 additions and 717 deletions

View File

@ -62,7 +62,7 @@ void process_session(struct task *t, int *next);
int process_cli(struct session *t);
int process_srv_data(struct session *t);
int process_srv_conn(struct session *t);
int process_request(struct session *t);
int http_process_request(struct session *t, struct buffer *req);
int http_process_tarpit(struct session *s, struct buffer *req);
int http_process_request_body(struct session *s, struct buffer *req);
int process_response(struct session *t);

File diff suppressed because it is too large Load Diff

View File

@ -705,8 +705,8 @@ void process_session(struct task *t, int *next)
if (!tcp_inspect_request(s, s->req))
break;
if (s->req->analysers)
if (!process_request(s))
if (s->req->analysers & AN_REQ_HTTP_HDR)
if (!http_process_request(s, s->req))
break;
if (s->req->analysers & AN_REQ_HTTP_TARPIT)