mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-23 23:28:47 -04:00
BUILD: sockpair: do not set unused flag
Ilya reports in GH #1392 that clang 13 complains about a flag being added to the "flags" parameter without being used later. That's generic code that was shared from TCP but we can indeed drop this flag since it's used for TFO which we don't have in socketpairs.
This commit is contained in:
parent
f2dda52e78
commit
0ce77ac204
1 changed files with 0 additions and 4 deletions
|
|
@ -331,10 +331,6 @@ static int sockpair_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));
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue