From: Willy Tarreau Date: Fri, 17 Sep 2021 09:56:25 +0000 (+0200) Subject: BUILD: proto_uxst: do not set unused flag X-Git-Tag: v2.5-dev8~179 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b5d1141305423bf221b554bd1349b90259afc3d7;p=thirdparty%2Fhaproxy.git BUILD: proto_uxst: do not set unused flag Similarly to previous patch for sockpair, UNIX sockets set the CONNECT_HAS_DATA flag without using it later, we can drop it. --- diff --git a/src/proto_uxst.c b/src/proto_uxst.c index efa7af9510..dfc52b137e 100644 --- a/src/proto_uxst.c +++ b/src/proto_uxst.c @@ -285,10 +285,6 @@ static int uxst_connect_server(struct connection *conn, int flags) return SF_ERR_INTERNAL; } - /* if a send_proxy is there, there are data */ - if (conn->send_proxy_ofs) - flags |= CONNECT_HAS_DATA; - if (global.tune.server_sndbuf) setsockopt(fd, SOL_SOCKET, SO_SNDBUF, &global.tune.server_sndbuf, sizeof(global.tune.server_sndbuf));