MINOR: peers: use the socket layer operations from the peer instead of sock_raw

At the moment, all the peers are initialized to use sock_raw as the socket
layer, so use this info in peers_session_create() instead of the hard-coded
sock_raw.
This commit is contained in:
Willy Tarreau 2012-05-21 22:18:17 +02:00
parent 4da69a91a0
commit 1348d4ce0b

View File

@ -1177,7 +1177,7 @@ static struct session *peer_session_create(struct peer *peer, struct peer_sessio
s->si[1].release = NULL; s->si[1].release = NULL;
s->si[1].send_proxy_ofs = 0; s->si[1].send_proxy_ofs = 0;
set_target_proxy(&s->si[1].target, s->be); set_target_proxy(&s->si[1].target, s->be);
stream_interface_prepare(&s->si[1], &sock_raw); stream_interface_prepare(&s->si[1], peer->sock);
s->si[1].exp = TICK_ETERNITY; s->si[1].exp = TICK_ETERNITY;
s->si[1].flags = SI_FL_NONE; s->si[1].flags = SI_FL_NONE;
if (s->be->options2 & PR_O2_INDEPSTR) if (s->be->options2 & PR_O2_INDEPSTR)