REORG: sock_inet: move default_tcp_maxseg from proto_tcp.c
authorWilly Tarreau <w@1wt.eu>
Fri, 28 Aug 2020 16:03:10 +0000 (18:03 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 28 Aug 2020 16:51:36 +0000 (18:51 +0200)
commite5bdc51bb5803309938946c710e7233dbf9382a4
tree25ae71f640f29e7ed8c5485a74b034d8327dc9ec
parentd88e8c06ac076d5550366aa6a283ad485948975e
REORG: sock_inet: move default_tcp_maxseg from proto_tcp.c

Let's determine it at boot time instead of doing it on first use. It
also saves us from having to keep it thread local. It's been moved to
the new sock_inet_prepare() function, and the variables were renamed
to sock_inet_tcp_maxseg_default and sock_inet6_tcp_maxseg_default.
include/haproxy/sock_inet.h
src/proto_tcp.c
src/sock_inet.c