MEDIUM: stream: move the frontend's pointer to the session

Just like for the listener, the frontend is session-wide so let's move
it to the session. There are a lot of places which were changed but the
changes are minimal in fact.
This commit is contained in:
Willy Tarreau
2015-04-03 15:40:56 +02:00
parent fb0afa77c9
commit e36cbcb3b0
13 changed files with 281 additions and 273 deletions

View File

@@ -2139,8 +2139,8 @@ __LJMP static int hlua_socket_new(lua_State *L)
socket->s->flags = 0;
/* Assign the configured proxy to the new stream. */
socket->s->sess->fe = &socket_proxy;
socket->s->be = &socket_proxy;
socket->s->fe = &socket_proxy;
/* XXX: Set namy variables */
socket->s->store_count = 0;