[MAJOR] separate sess->proxy into sess->{fe,fi,be}
The references to the proxy from the session have been turned into
Frontend (fe), Filters (fi) and Backend (be). This should ease the
migration to the L7 switching features. Next step will be to kill
the struct proxy and have 3 independant structs instead, each
referenced from entities called listener, frontend, filters and
backend.
diff --git a/src/session.c b/src/session.c
index 9a59e28..16047ea 100644
--- a/src/session.c
+++ b/src/session.c
@@ -41,19 +41,19 @@
if (s->rsp_cap != NULL) {
struct cap_hdr *h;
- for (h = s->proxy->rsp_cap; h; h = h->next) {
+ for (h = s->fi->rsp_cap; h; h = h->next) {
if (s->rsp_cap[h->index] != NULL)
pool_free_to(h->pool, s->rsp_cap[h->index]);
}
- pool_free_to(s->proxy->rsp_cap_pool, s->rsp_cap);
+ pool_free_to(s->fi->rsp_cap_pool, s->rsp_cap);
}
if (s->req_cap != NULL) {
struct cap_hdr *h;
- for (h = s->proxy->req_cap; h; h = h->next) {
+ for (h = s->fi->req_cap; h; h = h->next) {
if (s->req_cap[h->index] != NULL)
pool_free_to(h->pool, s->req_cap[h->index]);
}
- pool_free_to(s->proxy->req_cap_pool, s->req_cap);
+ pool_free_to(s->fi->req_cap_pool, s->req_cap);
}
if (s->logs.uri)