[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:
parent
d34af78a34
commit
59234e91c2
|
@ -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);
|
||||
|
|
1409
src/proto_http.c
1409
src/proto_http.c
File diff suppressed because it is too large
Load Diff
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue