]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: peers: use the socket layer operations from the peer instead of sock_raw
authorWilly Tarreau <w@1wt.eu>
Mon, 21 May 2012 20:18:17 +0000 (22:18 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 21 May 2012 20:21:37 +0000 (22:21 +0200)
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.

src/peers.c

index 721eecbafbde4f56002072a575cf8bbb863bf39a..c615b3be0fadeef2ca1241b77f1aad9d24b6fd3b 100644 (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].send_proxy_ofs = 0;
        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].flags = SI_FL_NONE;
        if (s->be->options2 & PR_O2_INDEPSTR)